Embryos have two pairs of ducts to let gametes out of the body; one pair (the Müllerian ducts) develops in females into the Fallopian tubes, uterus and vagina, while the other pair (the Wolffian ducts) develops in males into the epididymis and vas deferens.
Normally, only one of the pairs of tubes will develop while the other regresses and disappears in utero.