Sex for labor

When they say sex helps you get labor going is it because of orgasm or because of semen?