Hi Jocelyn,
To put the above scenario in layman's terms for you, Jocelyn:
A coin toss always provides a 50/50 probability of it landing on heads or tails accordingly, just like the chance of birthing a boy or a girl baby is 50/50. Even though both males and females produce X chromosomes unto their offspring, the fact that the male sperm also contains a Y chromosome allows for the possibility of a boy baby being born. So even though the female ovary is guaranteed to produce a girl due to the lone X chromosome present thereon, the Y chromosome can "shake things up" on the chromosomal front accordingly.
Scientifically speaking: although the sperm's Y chromosome moves faster down the fallopian tube when fertilizing an egg, the X chromosome (from both the sperm and ovary) is stronger/more dominant. So sometimes, the slow-but-steady contender wins the race when it comes to producing a male versus a female fetus. But even though both the male and female parents of a child possess X chromosomes, the probability of producing a girl or a boy is still 50/50 due to the presence of the male Y chromosome, with no predictable fetal outcome in tow either (regardless of whether or not a family's overall lineage or an individual's siblings or parents' offspring shows reproduction of more males or females accordingly).
I hope this helps!