Notably the same argument has been used to set the precedent that male rape victims are also compelled to pay child support to their rapists: https://en.wikipedia.org/wiki/Hermesmann_v._Seyer
There the alimony decision was based on the rape victim giving consent from the standpoint of the civil laws which also govern parental relationships. That did not matter for criminal law because the victim was underage.
Not that I agree with the court here, but it is completely different from what you described.
But there are a bunch of similar decisions here: https://scholarship.law.upenn.edu/cgi/viewcontent.cgi?articl...
And the common theme is just because the parent is raped, doesn't override the rights of the child.
It's easy to see how that logic would be extended from child support to abortion.
If you believe that abortion is murder, how the child came to be is irrelevant.
The only way that the mother's conscious choice to have sex factor's into the equation is if the intent of abortion laws is not to protect children, but rather to punish women who choose to have sex.