As I said, homosexuality was the consequence of knowing God but rejecting Him. Some versions say "exchanged" rather than changed. It's probably closer to the meaning but it is not literal. When you look at ancient religions, e.g. Egypt's, there are countless idols. Egyptians worshiped cats, which obviously cats remember still.
It's not only homosexuals that worship false gods. But you will remember that God's judgement was to let humanity do whatever was in their hearts. Homosexuality and transgender is the ultimate act of rebellion against God's creation and purpose for mankind.
Don't believe the lie that children know that they are homosexual. There are mothers who wanted a girl and gave birth to a boy. Some mothers try to feminise (if that's a word) their sons. Homosexuality is also a spirit and young people can be taken over given the right circumstances. I was in the military when I was 16. Homosexuality was common. Men tried to corrupt me. No thanks.
Homosexuality can be the result of abuse. I've had conversations with gays that told me their experiences. I don't like to go into details.
If you look at the history of the "Christian" world, you will see a correlation between the decline of the church and the rise in homosexuality. It's not that there are more, it is that it's more open and more militant. "Gay Pride" says it all. I guess no one told them that pride leads to destruction. (Proverbs 16:18)