Well, not only it is contradicting with common sense, it is also clearly against what Atri Rishi has to say in the Atri Smriti:
When, after delivery, the menstrual blood is seen, the woman becomes
purified like pure gold. (192)
If despite her complete unwillingness, a woman is known deceitfully, forcibly or stealthily, that woman, unaffected by any sin, should not
be renounced ; for she has not done so willingly. [Her husband] may
hold congress with her at the time of the menses, [for a woman]
becomes pure at the flowering time. (193, 194)
What is the fault of the victim here that she needs to be killed??
Updating with more verses from other Smritis.
The Vashishta Smriti says a wife can not be forsaken even if she is forcibly enjoyed. Killing of course is not even a consideration.
... by vedic rites, water by urine and faeces, and A woman is not
polluted by a lover, a Brahmin fire by the act of burning.
Whether she has strayed on her own or has been expelled, whether
she has been raped forcibly or abducted by robbers––a wife who has
been defiled should not be forsaken; there is no law permitting the
forsaking of a wife. One should wait for her to menstruate; she is
purified by her menstrual period.
And, Apasthambha says such victims of rape should be protected by the king.
If a young man all primped up barges accidentally into the presence of
another man’s wife or a young woman, he should be verbally
reprimanded; but if he does so deliberately and with a malicious
intent, he should be punished. If intercourse took place, his penis
should be cut off along with the testicles. If it was with a young
woman, he should be banished and his property confiscated.
Thereafter, the king should support those women and from then onwards guard them from sexual congress. If they agree to perform
the expiation, however, he should hand them over to their respective
Once the expiation has been performed, the guardians should treat them as before, for their relation- ship is based on the Law.
Apasthamba Dharma Sutras 2.26.8