Child - das Kind - grammatical gender: neuter. Referred to in context using the gender-neutral pronoun ‘es’ (it). The pronoun used correlates with the grammatical gender of the noun used, not the gender of the person referred to.
Eg Ein Kind lacht. Es hat etwas gesehen. (transl: A child laughs. He/she/they saw something.)
I know. But generally, the gender of the noun describing a person correlates with the gender of the person described strongly.
Ok but my point is that when it doesn’t correlate, it becomes clear how grammatical gender is independent from the person’s gender.
It becomes even clearer when you consider all nouns by definition have a grammatical gender - inanimate objects, abstract concepts, etc, even though the thing described clearly doesn’t have a gender. Eg die Tür ist offen. Ich schliesse sie. (transl.: the door is open. I close it.) ‘Sie’ being the female pronoun used to refer to the grammatically female door.