Simply put, daycare is much more economically efficient than having one parent stay home with one child. In a daycare setting, one adult can care for up to 4 children. Most stay-at-home parents are NOT parenting 4 kids at once.
Like most things in the world, specialization has all sorts of advantages. Daycare is able to provide stimulation for our daughter that a parent at home would struggle to provide; when it is your full time job to take care of a number of kids, you can dedicate your time to creating stimulating and fun activities for them.
I also think there is benefit in the socialization aspects of daycare. Learning to be around other kids and be the social creatures we are is a good thing.
Now, I do believe that a dedicated stay-at-home parent can of course provide all of these things as well, it is just very difficult and inefficient... it is the same reason we all don't grow our own food and make our own clothes... division of labor and specialization are great things.
Example: most teachers in this day and age pretend you (as a parent) have time to help your kids with some pretty rigorous homework, like 1-2h every evening (esp. if your kid is in the "gifted" track). Multiply by 2 or 3 and it becomes difficult to say the least. If you're a working parent, its literally impossible.
I can make way better tomatoes in my backyard garden then anything you can buy at the most premium, organic farmer's market you can find. Part of the reason is that I can care for my tomatoes to an unreasonable level since I know that I am the one that's going to be eating them.
"Home grown tomatoes" may be best when grown by good gardeners (i.e. some people are just better with kids, including their own) and the ideal environment (parks, museums, grandparents nearby). But it's not a universal truth.
A dedicated artisan can beat even an expert mass producer every time.
I certainly still do a lot of parenting for my daughter (I don't outsource all of it!), but I do use external daycare, just as I am sure you buy food from places besides your garden.