paulgr:
A controversial view these days I suppose, I consider prisons are there to protect societies law abiding people from those that don't give a stuff about the rest of us.
The vast majority of people that grow up poor, are brought up in dysfunctional families, or are otherwise disadvantaged do not commit ram raids, beat people up, and run around in gangs giving the finger to everyone else.
Society needs rules to function and they need to be enforced on this lawless minority or you no longer have a safe functioning society.
I worked in paid and voluntary social services for many decades and based on that experience your comment above is a simplistic view which I believe is influenced by the news media take on what they believe is the issue . Violence is present in all socio-economic levels, as is crime, mental health issues and so on. It can be all too easy for society to form conclusions in order to isolate themselves for the inconvenient truth of what is causing the societal issues Aotearoa is facing and sadly they are not new issues.
Edit: I have edited my original post to reflect a non knee jerk response that is previously was. Thank you @surfisup1000