I'm not sure how it benefits anyone now to know.
The judge wanted him named deliberately to prevent racial tension that was already developing. Very sensible.
That second statement is complete nonsense, the judge said nothing about racial tension.
I’ve only skim read the rest of the thread, so unsure if anyone has actually mentioned the actual reason he was named which the judge was very explicit about.
The reason he was named is because Campbell blamed Toni McClachlan, the father’s girlfriend, for Alesha’a murder and made a series of horrendous allegations against her, all of which were published alongside her name and photograph.
As the judge said, keeping his identity secret would have meant that her name and image would always be the one seen alongside reports about Alesha and in the absence of the guilty party’s identity a cloud would always have hovered over her head even though she is entirely innocent.