I agree with Zeph.
This is basically a function of the Christian slave morality which decrees that one should remove the source of temptation and sin, rather than learning to overcome the urge inside oneself. Who does Christianity hold up as its exemplars? People like St Benedict, St Jerome and St Augustine, and so on, who all at some stage lived as ascetics and hermits, as they believed that they would be corrupted by the vices of humanity, sex, wealth, gluttony, and this included all forms of art and science. In a sense, the highest virtue becomes abstinence and these people live lives motivated almost solely by the fear of sin. There's no sense that these so-called sins are challenges to test one's fortitude and faith, despite the fact that a Christian could live a perfectly moral life surrounded by the utmost depravity. It's the same for Muslims who believe that women should be covered to avoid the men being tempted.