That's a natural reaction when you need to focus. Reducing unnecessary stimuli helps you pay attention to something else, even if it seems like music is completely unrelated to parallel parking.

Edit: I...I don't understand what's happening here