To be fair, according to the story, they were going to give him 6 months diversion before he decided to change his plea at the last minute, so it seems like they were trying to teach rather than punish.