We do not enjoy punishment. Being punished is painful at the time. But later, after we have learned from being punished, we have peace, because we start living in the right way.