Obviously, punishment itself can have an extrinsic value: it may encourage fewer people to offend. But how has anyone argued for the intrinsic, rather than extrinsic, value of retributive justice?
I imagine that the idea is that some people have performed etc. so much evil that they forfeit the claim to freedom, happiness, etc.. But losing a right to something isn't the same thing as having that thing taken away.