You see, mother and fetus have quite distinct evolutionary interests. The mother ‘wants’ to dedicate approximately equal resources to all her surviving children, including possible future children, and none to those who will die. The fetus ‘wants’ to survive, and take as much as it can get.
Suzanne Sadedin, “What is the evolutionary or biological purpose of having periods?”