It makes sense if society has collapsed and keeping prisoners alive isn’t possible without seriously straining infrastructure, so something like a civil war, but otherwise it’s pointless. They won’t be released, so they won’t kill again, so what’s the point?