If that was it, they could just have obtained a signed affidavit from the parents and perhaps their doctors
A trans person could take advantage of the same mechanism, which is why it's not allowed. They care more about hurting trans people than they worry about the few cis kids that fall through the cracks. This kid was just acceptable collateral damage in their culture war.