Can you not read? When outer fortifications were overcome.
Their current and past uses are the reason why they were built in the first place, you fool. Storage and safety are more than enough of a reason to build a dungeon. ...Of course, someone such as you would see no other use for them asides from 'punishment'. Nothing particularly surprising, there.