There is a financial incentive to NOT share data because there is a demand in the market for privacy. Apple can pursue this market because they charge for hardware. Google had no way of making money on privacy because they don’t sell a physical product.
So it is simple: Apple has a choice. Google doesn’t.