These sorts of overreactions are very uncommon. That isn't to say these sorts of zero tolerance, jail what you don't understand, actions shouldn't be strongly condemned.
But there are probably hundreds of thousands of kids who are into tinkering and hacking who haven't ever been bothered.