This is because the word for "girl" in French is "fille", which is a feminine noun.
While some languages might have gender-neutral terms for children, French uses distinctly masculine and feminine nouns, including for "boy" (garçon) and "girl" (fille).