Google profits from advertising; Google collects data for advertising.
Apple profits from iPhones; Apple conforms to censorship to keep their biggest (population-wise) customer.
Companies are driven by money, not goodwill. Apple only pushed for privacy because it was a selling point.