It's possible to make money on them. But not if you have tens of thousands of employees.
They fail because they need to become billion dollar behemoths to support the VC funding they've gotten. But plenty (not all though) of them could be profitable if they were ran as a "lifestyle" business.