Two theories
I have two theories. Please don't get your undies in a twist, because they're only theories.
1 - Homosexuality is a result of the Fall of Man.
2 - Satan, being the annoying little bugger that he is, works his influence while the child is still in the womb.
These are just theories. Don't yell at me or label me a homophobe.