I suspect this kid has intersex disorder. Depending on the disorder there may by sound medical reasoning here, but age 9 way too late for this. If so, sad they waited so late to try and change the poor kids sex, that's usually done well before the first year or age.
This poor kid's going to commit suicide someday, and the burden will be on the foolish parents for acting so late.
In the case of intersexed babies, the medical community is coming to the conclusion: It is best to wait until the child can tell everyone to which gender they belong. There have been far too many mistakes, where the baby was arbitrarily assigned at birth.