If a car with Google Automotive has CarPlay, how would Google get data from the iPhone? Is CarPlay not just an interface so your phone can display things on a bigger touchscreen?
Even if the car is using CarPlay it can still report everything it knows about your location to Google. That translates to where you go at what times, etc.