A woman passes out hCG in the urine during the pregnancy. Why?

The presence of human Chorionic Gonadotropin (hCG) is the basis of pregnancy test. Placenta forms during pregnancy releases hCG, which comes in urine of pregnant Woman.