I suspect many of us often assume that offenders think about the consequences of their action before they undertake them. For a lot of stupid/wreckless offending that probably isn't the case.
And if we are talking about teenagers ... humans tend to be poor at thinking ahead during their teenage years.