I imagine it's like the door to the holding hells where you begin. You don't ever need to go through it, but you can open it from the other side to shortcut back into the prison. It's the "normal" exit from the prison. Also, it makes for an interesting quest: escaping via the less obvious route.