Hi Jck Gutknecht and welcome to the BH site. Now if we take a closer look to the verse in question
> Exodus 21:22
"If people are fighting and hit a pregnant woman and she gives birth
prematurely but there is no serious injury, the offender must be fined
whatever the woman's husband demands and the court allows. (NIV)
... we can surely notice that this is not really a case of miscarriage. It is rather a premature birth caused by an accident. It is not even about abortion. Two men are fighting and the pregnant woman gets hit. She is not seriously injured, however she gives birth. From Exodus 21:22 we don't know what it is to be done if the child dies (like in a case of miscarriage or abortion). What we do know is that the woman's husband is entitled to demand some sort of a compensation to the offender. So it is not the woman that is punished, but the one who has hit the woman and caused the premature birth. This is to be underlined:
Exodus 21:22
... a pregnant woman and she gives birth prematurely ... (NIV)
Which I would read: she gives birth prematurely and the child is alive. Of course, there is a lot of discussion around this. Please have a look here.
So, it is not about miscarriage, it is not about abortion, it is not about the belief that the unborn is not considered fully human. It is simply about an accident, the woman is not seriously injured and the child is alive.
Why would this require a penalty, then? Well, first of all because of the accident, just like in a case of an accidental killing, just like in Deuteronomy 4:41 sq for instance. Or simply because of the fact that, just like today, a premature born child was in a special need for a while, compared to other children, and this was expected to make the baby's parents life more complicated and thus they were entitled to some sort of a compensation for their trouble.