When you're talking about the gender of a baby (whether it's a boy or a girl), you have to start by calling the baby "it". That's because saying "He's a boy" or "She's a girl" sounds silly and repetitive. So people say things like:
Is it a girl?
We didn't know if it was going to be a boy or a girl.