Apple and Google are in two different businesses. When Apple has a unified ecosystem, they limit what you can install/do right out of the box (they sell hardware that's tightly integrated with their own software). When Google has a unified ecosystem, they collect more information about you through different services.
Apple makes money from selling stuff. Google makes money from ads. Who has a greater incentive to collect more of your personal information and use it to make money?