Prison for violent offenders can be punitive, but the prevailing wisdom re: justification for incarceration (aside from the obviously problematic enrichment of private prison owners) is:
1. To rehabilitate the offender and reduce recidivism, and
2. To protect the public from those who are unlikely to rehabilitate.
Per that rationale, people with “violence genes” should get longer sentences with more intensive rehabilitation.