Feels like a Prison - Is it to stop you from going in / or running out ?

What's the reasoning behind that.