Why must on employer consider the rights of an unborn child?

Class–

Why must on employer consider the rights of an unborn child?  Do the rights of the pregnant worker supersede those of a fetus?  Does an employer have an obligation to both?