Romans 1:26, 27 - For this reason God gave them over to degrading passions; for their women exchanged the natural function for what is unnatural, and in the same way also men abandoned the natural function of the woman and burned in their desire toward one another, men with men committing indecent acts and receiving in their own persons the due penalty of their error.
For this reason? For what reason? Got to go to verse 25 - For they exchanged the truth of God for a lie, and worshiped and served the creature rather than the Creator, who is blessed forever. Amen.
Verse 28 elaborates in that "just as they did not see fit to acknowledge God any longer, God gave them over to a depraved mind, to do those things which are not proper . . . "
i.e. homosexuality is God's punishment for rejecting God as creator . . . per the text, anyway.