How do we explain the profound effect music has on our emotions?

The other day I listened to an amazing song and I was overcome with goosebumps and this incredible feeling. Can that be explained by a model? Was I just constantly thinking that each moment of the song was amazing so it caused euphoric emotions? And how do we love a song that we are hearing for the first time? I’m a musician so that’s why I’m inclined to analyze this subject. Thanks!