<human>:  Why did the first prisons have a dungeon?
<bot>: The dungeon was a place where criminals were kept in solitary confinement. It was a place where they could be kept away from the rest of the prison population. The dungeon was also used to punish criminals.