The multiple reinforcing cues of a good song—rhythm, melody, contour—cause music to stick in our heads. That is the reason why many ancient myths, epics, and even the Old Testament were set to music in preparation for being passed down by oral tradition across generations.
This is Your Brain on Music (2006)