Punitive actions are meant to correct the aberrant behavior by acting as a deterrent. The end goal of anything in criminal justice is to make the victim whole, and if that is not possible to deter future crimes of that type. This is why there are limits to how cruel we are allowed to be, as cruelty for vengeance sake is no more effective than is securing an individual who is very likely to continue their behavior.