Example 20 year old experimenting with drugs:
Going to jail for a year breaks any career chances or most of the job opportunities plus messes up his mind by staying with other convicts.
Letting him experiment with drugs, he might mess up his health but also he has still a chance to continue rather normal life.