"The party has been overwhelmed and captured" is a trope used in many RPGs. They are either ambushed and taken out before they can react or they realize the number of enemies is just too large to live through. So ... they end up in a prison.

Enter the "Prison Breakout" scenario.

Said scenarios encourage players to be creative as they're not breaking INTO a facility, they're breaking OUT.