Pregnancy question

Why do you get so much discharge when pregnant? What is the biological explanation for that?