A lot of the same could be said for FB.
But I feel that it's incorrect to dismiss Google as being a bad search engine. DDG and Brave both provide !bangs for google and many other search engines that a significant part of their userbase use regularly. I myself use google often when I'm searching for something extremely specific, something that Google may give me 2-3 relevant search results for. Other search engines would often not give me anything relevant at all.
There is absolutely nothing here about open sourcing the bits of code that make them the real money. The business logic implementations, that's what I'd be interested in seeing. That's what we're talking about.
Most of these companies open source because they're great strategies for recruitment anyway. Ie, they get something out of open sourcing these periphery services.
Uber, Yahoo, Google, FB, you name it, all provide a ton of work open source. They don't compete on code alone.