How oc pills are protective against PID?

How oc pills are protective against PID ?

Progesterone makes cervical mucus thick viscous and scanty and prevents entry of microbes

Oral steroidal contraceptives lead to the production of a thick mucus plug preventing ascent of sperm and bacterial penetration. They also decrease the duration of menstruation, creating a shorter interval of bacterial colonization of the upper tract.