 Well, studies have suggested that the phenomenon of involuntary musical imagery, known commonly as an earworm or a repetune, occurs when your brain, your memory to be precise, is attempting to remember the entire song.