Deterrence is only part of it. It's morally instructive, it tells people that they live in a society that takes rules seriously.
What is the aim of "moral instruction" if not deterrence? Surely it needs be instruction in pursuit of an outcome?
What is the aim of "moral instruction" if not deterrence? Surely it needs be instruction in pursuit of an outcome?