I think the girl is being unfairly treated, but they can’t have known her race to the racism charge is absurd.
But they knew her name was Kamilah, which may have been a clue.