It's likely that religions adopted sex aversion from common culture rather than the other way around. The Bible for example is much less puritan than what we associate with Christian culture (see song of songs). In contrast, things the Bible condemns that aren't so culturally logical have barely entered the cultural consciousness. For example its frequent condemnation of consumption of blood