Well of course they do; it's not rape there as long as you marry the 12-year-old first.
Whether or not this applies to rape is a question of debate. However in Pakistan it certainly has been interpreted to so apply. Which means that it is very hard for a woman to prove that she was raped.
See https://en.wikipedia.org/wiki/Hudud#Requirements_for_convict... for verification.