I have heard some progressive Christians claim that Leviticus 18:22 was only condemning homosexual activities for idolatrous rituals. I know that 1 Corinthians 6:9 and 1 Timothy 1:10 was using the word "arsenokoitai" which came from Leviticus 18:22 and Leviticus 20:13.
In Leviticus 18:2-3 it says: “Speak to the people of Israel and say to them, I am the Lord your God. You shall not do as they do in the land of Egypt, where you lived, and you shall not do as they do in the land of Canaan, to which I am bringing you. You shall not walk in their statutes."
There are some people who say that because of these verses, it was condemning the idolatrous practices in Egypt and Canaan which included homosexual sex. Therefore, in this context, it is only referring to homosexual activity that has idolatrous rituals involved. God was only prohibiting the rituals they did in Egypt and Canaan.
We also see in Leviticus 18:21, the verse before, it says: "You shall not give any of your children to offer them to Molech, and so profane the name of your God: I am the Lord."
Some have suggested that because of the context, Leviticus 18:22 is not prohibiting loving same-sex relationships but only ones that relate to pagan rituals. Is this true? If not, why?