It's a garden right up until the point you try to leave. Then it's a jail you're trying to break out of.
Most sories with this plot, the prisoner gets free and gets to see the garden for what it really is. Famous example: The Matrix