Anyway, it is perfectly clear that she was not "trapped".
She was able to get out; she was simply told to stay there for the time being because it was safer (which was probably true, whatever the circumstances in which she came to be there at that time).