Keep in mind she's very young, prrrrrooooobably has a crush on Nozomi, and was worried Heidi might be a potential lover. So she just blurted out the first relevant question that came to mind.
Jealousy has a way of suppressing manners, especially among the young.
Hahahah "are you a man or a woman", damn Shino, does it matter? Rude. Also it's more politely to ask "how do you identify?"