Prison is punishment  While rehabilitation and prevention are important parts of sentencing there also needs to be punishment. There being a punishment, is necessary to ensure there is a deterrence to prevent the offender reoffending, and to prevent others carrying out the same crime. This applies equally to young offenders as to older criminals.