Google didn't even invent Android, they purchased it. (Of course Apple purchased NeXTSTEP too.) And Google is not even the biggest Android hardware manufacturer.
The bizarre thing is that most apps on both iOS and Android are free, so they pay very little for the so-called "maintenance", even if these apps are hugely popular. This is very different from a game console, where every game earns money directly. Fortnite is hugely popular, but for some reason struggling little indie paid apps are forced to subsidize the platform for immensely popular free apps?