Definition
to stop someone or something from exiting a location by closing or securing a door or gate
When I left the room, I accidentally shut my cat in.
To ensure safety, he shut the children in the playroom to prevent them from running around outside.
While repairing the garage, they inadvertently shut the car in.