All of those servers run on Intel chips. Maybe some AMD. Even combined, companies like Google and Amazon, who would be nothing without those chips, are worth more than the companies that make their chips.
And electricity! Our electric companies aren't worth a penny compared to these huge tech companies. That's strange. They wouldn't even be able to see, let alone run their computers, without the electric company.
IBM paid billions of dollars for Red Hat.
And you can have a lot of revenue while losing money.
Woocommerce users apparently make $10b in revenue, and i doubt they lose much, after all it s free
i.e: You can be in Automattic business and make a dev team larger than them that develop the core WordPress. They don't rule WordPress the open source product but just are a company that made it.
But open source also means users can fork if the company sucks.