My guess is that the teacher wanted the child removed from the classroom and was demonstrating what would happen when the child was told to pick up the toys or whatever it was. The teacher knew that the child would resist and go to pieces.
All of this is going on AFTER the teacher took away the jelly beans she had given her earlier.