This gives credence to Romans chapter 1 where the godless are “given over” to homosexuality as a consequence of their rejection of God:
21 For although they knew God, they neither glorified him as God nor gave thanks to him, but their thinking became futile and their foolish hearts were darkened.
22 Although they claimed to be wise, they became fools
23 and exchanged the glory of the immortal God for images made to look like a mortal human being and birds and animals and reptiles.
24 Therefore God gave them over in the sinful desires of their hearts to sexual impurity for the degrading of their bodies with one another.
25 They exchanged the truth about God for a lie, and worshiped and served created things rather than the Creatorwho is forever praised. Amen.
26 Because of this, God gave them over to shameful lusts. Even their women exchanged natural sexual relations for unnatural ones.
27 In the same way the men also abandoned natural relations with women and were inflamed with lust for one another. Men committed shameful acts with other men, and received in themselves the due penalty for their error.
I love the way the late Dr. A.E. Wilder-Smith explained this phrase.
To paraphrase: Upon knowing God, their response is either "I refuse accept it" or "I don't care."