A judge and lawyer have warned that harsh penalties and jail time for child offenders are failing to address the root causes of youth crime in Australia.