Religion was used as an ideology as a system of control. When they forced the veil upon women they were using it as an instrument of control in the same way that in Mao's China people were wearing Mao jackets and women were not supposed to wear any makeup.
The insufferable arrogance of human beings to think that Nature was made solely for their benefit as if it was conceivable that the sun had been set afire merely to ripen men's apples and head their cabbages.