You would punish someone because you don't want them do repeat something they did.