Disagree with “it has nothing to do with islamic countries”. however it could have nothing to do with islam and everything to do with shaitan.
this type of punishment for victims is common in extreme islamic countries. It might not have anything to do with islam (I lay no claims on knowledge of islam)