I'm not sure if that's current thinking among the child care community. The child might be traumatised for life and develop an aversion to slushies. Whatever they may be.
It's the parents who need a good slap. They should be protecting this little girl by making sure she can't let herself out of the house in the middle of the night.
Most children 'escape' now and then. What is needed are locks high enough the child cannot reach. I had to get one when one of mine did a runner one day at age 3, headed for the local park where there was a pond.. Luckly Dad caught up before she got to it. Small children do not know about danger.