People sometimes punish to exact judgment for past actions. God disciplines in order to teach and always in the interest of those whom he disciplines.