We should recognize that we cannot always judge that correctly. So you either let people out who might still be a danger, or you keep people locked up who might not be a danger. (And, in fact, you do both - all you can do is adjust the proportions.)
But people scream really loudly if you keep people locked up who arguably are no longer a danger...