My catholic school allowed girls to wear pants. I think they should have made an exception here personally given it was a special event. Presumably the girl otherwise followed dress code.
That said, why someone decided this was newsworthy I haven't the slightest idea.