Wilhelm Reich said this quote
“ The basic religious idea in all patriarchal religions is the negation of the sexual needs. Only in very primitive religions were religiosity and sexuality identical. When social organization passed from matriarchy to patriarchy and class society, the unity of religious and sexual cult underwent a split; the religious cult became the antithesis of the sexual. With that, the cult of sexuality went out of existence. It was replaced by the brothel, pornography and backstairs-sexuality. It goes without saying that when sexual experiences ceased to be one with the religious cults, when, instead, they became antithetical to them, religious excitation assumed a new function: that of being a substitute for the lost sexual pleasure, now no longer affirmed by society. Only this contradiction inherent in religious excitation makes the strength and the tenacity of the religions understandable: the contradiction of its being at one and the same time antisexual and a substitute for sexuality. ”