I think it relates to the phone bluetooth, not carplay. I've noticed that whenever my phone has a webpage open (even if I'm not actively using Safari) with a youtube video, or something that uses the audio, it will fight with Apple music. I think when I plug in the phone, carplay turns on, but...