To rape someone requires Mens Rea - I.E you need to know (or show sufficient disregard) that the person you are having sex with isn't consenting.
If i kidnap a woman and her kid, and tell her to go sleep with some random or i kill her kid, the person she sleeps with isn't raping her, even though she clearly isn't consenting.