People who dislike clever children should not teach. That poor wee girl.
Betting it’s not the full picture we’re getting from her teacher either: would love to hear the parents’ (who I don’t imagine for a moment coached their daughter to ask “awkward” questions) side; or indeed what the 10/11 (at this point in the year almost certainly the former) year old has to say.
As for the replies… such rank ignorance is almost impressive. I don’t know about trans people giving themselves UTIs if they can’t use the bathrooms they want - but girls absolutely end up with UTIs from not using the loo at school. UTIs in boys & men are far less common because of their longer urethras - & mercifully 5th Graders, even ones who haven’t transitioned days/weeks ago, won’t have had so-called “bottom surgery”. This is quite literally “give us what we want or we will hurt ourselves” - no question of negotiation or accepting an alternative: access must be granted; the needs of others subordinated; & there can be no discussion of the harms caused.