A judge said he wanted to ‘avoid criminalising these children unnecessarily’ after two boys were convicted of rape.