The ancestor of the word 'girl' meant "child of any gender".
Its meaning narrowed to "young female human" during the Middle English period.
The meanings of words change over time. This is called semantic drift.
Click my new graphic below to have a closer look at five examples of narrowing.
Tomorrow we'll dive into the opposite semantic change: widening.