If the egg fuses with a Y chromosome-bearing sperm, the child produced is a female.
The sperms bearing X chromosome reach the egg faster than the sperms bearing Y chromosome.