system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How does a song get “stuck” in your head?

Every morning when I wake up a random song will pop into my head . Sometimes it’s a song I love or one that’s been recently overplayed on the radio. But sometimes it’s a song I forgot even exists and haven’t heard in years. Just this morning I woke up middle of the night to use the bathroom and a song popped into my head. I go back to bed and hours later wake up, having completely forgot about the song, and first thing this song pops back into my head. How does this work? What occurs in the brain that causes this to happen?
gpt
Sometimes your brain wants to play Baby Shark over and over and that’s called an “ear worm!” Your brain views the music/lyrics as a puzzle that it wants to finish.  If you get caught in an ear worm, a simple cure is to listen to the song or do something that takes your mind onto a new chore (like puzzles, lego building or Minecraft).