There are a number of possible factors why this could have happened, but some could include that they were simply not well enough adapted to their ecological niche during the time when they were living. Because they weren't adapted enough, other species overtook their natural habitats and became the dominant species in those places.