I'm not sure what the original reason for this law is, since it's been a long time since I attended Temple.
There is a sound basis for the old law , even if the husband is Jewish it doesn't guarantee that he is the father of the child .
However the process of giving birth is a pretty good indication of who the mother of the child is