Apple and Google have a model where they make lots MORE money outside the system and if the price of software is ZERO they would be happy.
In Apple's case, even free software sells their phone.
In Google's case, even free software funnels users to their ad platform.
[1] "Smart companies try to commoditize their products’ complements."
1: https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/
(joel's a smart guy, he should write more often)