It’s not a middle eastern thing, It stems from people in power who don’t see women as having any value, except as house slaves/property. Those people try to justify their ideas by pointing to old texts, where other similar minded people have snuck in the notions of women as property or of less value than men.