She is an adult and needs to set the example. He is supposed to be learning from his teacher. Obviously he wanted attention and students will accept negative attention if they can’t get positive attention. But she had a teachable moment she could have made some inroads with him I believe.
Perhaps the lesson she did teach is actual more relevant and important than the one she "should have" taught.