This "single box" has a lot of computing units as on AWS EC2.
You can do all of it locally (except multi zone and multi region reliability) but it would take a lot of configuration, skills and you wouldn't have the same Gui for everything.
AWS is not cheap but companies don't care, because without it, you have to pay to find experts and keep them happy, which is a lot harder.
Some older discussion on the topic here: https://news.ycombinator.com/item?id=3165095