A punishment that penalizes without forestalling is indeed called revenge.

Albert Camus
Another Quote

3 Lies That Bind Us to Guilt and Shame