The Miranda warning says "Anything you say MAY be used against you in a court of law." They don't have to tell the court, judge or anyone else... but they may.
It would be lying to say the police "will" tell the judge anything the kid says. That's why they use "can".