Why is it "das Mädchen" and not "die Mädchen"?
Short answer
Because the ending -chen makes every noun neuter, whoever it describes. Mädchen comes from Magd (maid) plus -chen, "little maid", so it is das Mädchen. Die Mädchen exists too: it is the plural, "the girls".
German is not calling a girl a thing. German genders belong to words, not to the people or objects they name, and in this case the word’s ending wins.
The ending decides
-chen and -lein make things small and cute, and every noun with them is das. It does not matter what the noun was before: der Hund becomes das Hündchen, die Katze becomes das Kätzchen. Mädchen was once Mägdchen, a little Magd (maid), and the das came with the ending.
- das Mädchen, das Fräulein, das Brötchenthe girl, the young lady (old-fashioned), the bread roll
- Die Mädchen spielen Fußball.The girls are playing football. (plural)
Then is she "es"?
Strictly, the pronoun follows the noun: Das Mädchen ist neu, es kommt aus Wien. In everyday speech most people switch to sie as soon as they talk about the girl rather than the word, especially a sentence or two later. Both are correct, and nobody will look at you strangely for either.
It happens in English too
English calls a ship "she" and a baby "it". Grammar and the real world do not always agree in any language. German simply shows it on every noun.