A few weeks ago I heard a discussion about this practice on NPR. The details were a bit different. The person interviewed said that according to Islamic law, any woman who is executed as a virgin, regardless of how heinous her crime, is considered a martyr and goes straight to heaven. The authorities who sentence her to death, obviously don’t like that scenario, so they manipulate the circumstances to insure she goes to hell. They arrange for her to lose her virginity. Since rape outside of marriage is considered a sin, the chosen rapist must marry her to maintain his own innocence. Once the girl is executed, the man is free again with no stains of sin.