Earlier quoted context omitted.
>to an appropriate extent, punish. What's the overall goal of punishment? We know it's not a deterrent to crime. We know it doesn't help recidivism rates. The only remaining reason I can think of is spite/hate.
Or, a sense of justice. A powerful emotion in people. Who know how many more criminals there might be, if punishment was off the table? Recidivism doesn't count that. So there's that social pressure too. Its pretty easy to figure out 'why punishment', if you try.
How do you cure homelessness? You provide homes.
How do you deal with mental and physical illness? You provide health care.
How do you give people are path forwards? You provide education.
All of these things are what our societies are for. To carry on about "law and order" and even the "rule of law" without also quoting the part about "promote the general welfare" is to completely miss the purpose.