Cervical mucus

Ishrat
Why cervical mucus come out??? Does it come from cervix? Then it shouldn't it remain there? Why does it come out?