In ancient times, wealth was based on controlling farmland and extracting food from peasants. Modern economies don’t work like that, so what you can learn from historical analogies is limited.
Oddly, for some companies, the money comes from advertisers. When this started becoming a thing, I figured it would be a bubble and eventually businesses would wise up, but they've kept on paying for decades now.