Variantly: What is the intent of "and they hit a pregnant woman"? From "as the woman of the husband imposes upon him" I might think, even if the pregnancy is not his; it is, therefore, written "pregnant," to teach that he is liable only to the impregnator.
What If the Man Demanding Compensation Is Not the Biological Father
Mekhilta Tractate Nezikin 8:9