It must have been some angry teacher or principal who reported the incident to the Gendarmerie, who in their turn tried to "impress" and presented the kid to the court.
Debe haber sido un profesor o director molesto el que denunció el incidente a la Gendarmería, que a su vez trató de “impresionar” y llevó al chico ante la corte.