https://en.wikipedia.org/wiki/Inanna
i was reading a book I downloaded about mesopatamia, that brought up an interesting point that the 'sex cult' (roughly speaking, worshippers of the sex goddess Inanna) could have been an evolutionary or biological way to ensure humanities future. The author raised the point that life expectancy was extremely low, and mass death was not exactly rare due to no sanitation existing. So it could have been very important for the survival of humans to engage in hedonism early on.
Also it's very interesting to read stories translated from the time regarding sex and this goddess in particular. They were not shy to full on describe Inanna saying "Check out my vagina, look how perfect it is". Some of the earliest recorded stories have a level of poetic understanding of the world, and at some times, an almost modern bluntness that really takes me back.