Not to mention there'd be at least a few students too timid to challenge the teacher, even if they knew they got it right.
The world at large rarely accommodates shy people. Coping skills are essential, even if they are unpleasant.
They learned that cheating gives advantage to the cheating individual. They also learned that reporting cheating harms them and non cheaters.