They are so named because the female has two distinct sexual openings : one for mating , and the other for laying eggs . They are so named because the female has two distinct sexual openings : one for mating , and the other for laying eggs ( in contrast to the Monotrysia ) .