There is a pirate in the basement. (The pirate is a metaphor but also still a person.) (The basement could rightly be considered a dungeon.) The pirate was placed here for numerous acts of a piratey nature considered criminal enough for punishment by those non-pirates who decide such things.