Yes, there is specialization, but also popular are the so-called "all-rounders", which can tackle most anything you encounter. For folks who ride a variety of terrain and don't wish to store and maintain multiple bicycles they make a lot of sense.
And yes, they have their limitations, but you know that going in.