Google and Facebook are making hundreds of thousands of (almost endirely advertising derived) dollars per employee. They have functional monopolies on search and social media advertising respectively, so every company in the world looking to use those advertising vectors is at their mercy. Maintaining that extremely lucrative position is worth paying an excess to achieve even small advantages in staying ahead of the curve.