Why would she mention a mom leaving a room? Is it a cliché, perhaps?
Native speaker’s answer
Rebecca
Yes, you are right! One of the ways a parent educates their child to behave is to leave the room when they are misbehaving, to show they will not get any attention with bad behavior. It's the same when you train dogs also! Ex: Just leave the room if you feel angry. Ex: If he misbehaves, leave the room when you calm down.