Keep in mind that a 17 year old taking a nude picture of themself is in possession of child pornography. Do you want a harsh minimum sentence for that?
You gotta cut the government some slack here, they have contracts with private prison providers and quotas to fulfill. Can't have compassion and reason get in the way of that.
Times are moving faster, you have to adapt. Efficiency is trump. Children are no exception here. You gotta see that there is just no time for things like 'being a child'.