I could be wrong, but I think the religious logic is that it keeps the men in the community focused on society and their families rather than casting a wandering eye towards other women. Pretty sure that Muslim men aren’t looking at themselves as barely restrained rapists.
Whole thing is awful though, and I am in no way trying to support mandatory hijab laws.
I’m no expert, but it just feels like dropping nukes on Russia is a good way to get WWIII.