A punishment that penalizes without forestalling is indeed called revenge.
Quotes from Reflections on the Guillotine — Albert Camus
Attribution
Quotes and notes from Wikiquote: Albert Camus (page history), available under CC BY-SA 4.0.
Quotes and notes from Wikiquote: Albert Camus (page history), available under CC BY-SA 4.0.