Yes it is immoral, they should be rehabilitated instead
But society also needs to fix its dystopia because some crimes where committed out of necessity for example stealing food when you’d otherwise die and their was no way of getting free food
Crimes of necessity don’t need to he rehabilitated because people are forced to commit them due to their current living position
Your comment is exactly the same type I’d see from toxic users on reddit arguing that people should pay because Microsoft hosts servers for multiplayer and that the commenter gladly pays for it whenever I’d go to look at reddit posts calling out bullshit on pay walled multiplayer on consoles