She did not shut it properly because she knew that it is very silly to shut oneself into a wardrobe, even if it is not a magic one.
In "The Lion, the Witch and the Wardrobe" by C.S. Lewis, a character intentionally leaves a wardrobe door slightly open. This reflects her understanding that it is unreasonable to trap oneself inside a wardrobe, regardless of whether it's enchanted. Her actions highlight a blend of practicality and whimsy, emphasizing a childlike skepticism towards the extraordinary.
This moment sets the stage for a pivotal journey into a fantasy world. The wardrobe symbolizes a threshold between the ordinary and the magical, representing the curiosity and imagination that drive the story. By not fully closing the door, she retains a connection to reality while exploring a new adventure.