This has happened now on two different phones. One being the Google pixel 7 pro and my current which is a Motorola g stylus 5G. Sometimes when I turn the truck off it stops playing music like it's supposed to and sometimes it decides to play it through the speaker of my phone. I don't know why it's doing this nor how to make it stop. It's very random. Doesn't matter the song or time of day or if I used the phone while driving or not. Doesn't matter what steps I take when turning off truck and getting out. Although I always do the same thing.. I'm very routine. Back in driveway, put in Park. Shut off vehicle. Music typically continues to play thru truck speakers until I open the door.. and this is when it decides to either shut down (like it's supposed to) or have a mind of it's own and start playing thru the phone speaker. It's irritating.