This additional penalty is to be inflicted not because of the crime (what's done can't be undone), but for the sake of the future: we hope that the offender himself and those that observe his punishment will either be brought to loathe injustice unreservedly or at any rate