The state isn't in the business of revenge. It prosecutes crimes on your behalf because private vengeance escalates and frequently lands on the wrong person.
Retribution is impersonal, proportional, principled, and employs safeguards like time limitations.
You could say "the state channels the impulse toward revenge into a procedure that mostly isn't revenge" but Hobbes figured that out in 1651.