In psychology, there’s a term called music-evoked autobiographical memory.
It describes a situation where music spontaneously triggers personal memories from our past.
In other words, our brain naturally connects music with the experiences we lived through when we first heard that music.