Even though a girl is a person the gender of a girl (das Mädchen) is neuter in German. You need to know that grammatical gender to form a grammatically correct sentence - you do in fact need to say "it" ("er") in your sentence referring to the girl you met yesterday.
A girl is person and a burger isn't, but in German a girl is an "it" and a burger is a "he".