This probably explains "earworms" (songs that get stuck in your head) as well. Usually the hook that repeats doesn't have a musical resolution, and/or you can't remember how the song ends. Just hearing or imagining a single chord that sounds final can help get rid of them.