My understanding, at least with iPhones, is that when connected to Carplay they use the car’s GPS antenna. Not their own inbuilt antenna.
Tested this by hiding phones under seats, in centre consoles and in gloveboxes etc and the apps using GPS signal still work normally. Which they wouldn’t if...