Kids need to learn that actions have consequences. That's true at any age. The consequences have to be appropriate to the actions. With a 16 year old repeat offender those consequences should be getting serious.
The problem is the judge knows sending the kid to prison is unlikely to change his behaviour and may reinforce it, but what other choice is there?

