Something you can't get out of your head (shortened version).
Someone or something occupying your mind without permission or payment. They didn't ask to move in but here they are, taking up mental real estate. Eviction? Not possible. They've got squatter's rights.