It literally doesn't say that.
1 Corinthians 6:9 ESV
Or do you not know that the unrighteous will not inherit the kingdom of God? Do not be deceived: neither the sexually immoral, nor idolaters, nor adulterers, nor men who practice homosexuality
The Lexham English Bible is a very literal translation:
1 Corinthians 6:9 LEB
Or do you not know that the unrighteous will not inherit the kingdom of God? Do not be deceived! Neither sexually immoral people, nor idolaters, nor adulterers, nor passive homosexual partners, nor dominant homosexual partners
The words being translated in question are
μαλακός
mild, gentle; soft, effeminate
οὔτε
negative particle, related to μήτε as οὐ to μή,
and not, neither, nor
ἀρσενοκοίτης
a sodomite
(Abbott-Smith: A Manual Greek Lexicon of the New Testament)
ἀρσενοκοίτης - literally means "male who lies with another male". There's nothing to imply there is anything to do with children.
Dr Kevin DeYoung writes:
It’s a compound word: “arsen” means man and “koite” or “koitas” or “koitai”—depending on a verb or a noun—means bed. It’s men who bed with other men.
it's not about individuals who desire to be with the other sex
Even then, St Paul goes on to condemn this in Romans 1:26-27,
For this reason God gave them up to dishonorable passions. For their women exchanged natural relations for those that are contrary to nature; and the men likewise gave up natural relations with women and were consumed with passion for one another, men committing shameless acts with men and receiving in themselves the due penalty for their error.”
It is quite clear that the Bible depicts homosexuality as sinful.