If you are speaking of the Christian god, This is incorrect. God gave us free will to do things of our own accord so we would not be slaves. But this obviously makes us imperfect because he gave us options to do whatever we want. When Adam and Eve at the fruit the world was "Broken" polluting them with Sin. Now, The world is no longer perfect. That is how Homosexuality came to be. See God made male and female to reproduce but the idea of Homosexuality is man-made. Homosexuals cannot reproduce because they were not made to reproduce. However, Simply because they were not the intended way for things to be, Does not make them wrong, or bad Because as I said before, God gave us free will. God gave us the ability to make our own decisions. When he did this he knew that it would be entirely possible for us to make mistakes and stray off the intended path. Some people turned away from God's intentions and Loved people of the same sex. There is nothing Evil about this. Think of it like a kid who wasn't planned. Yes, you did not mean to get pregnant or to have a kid, But you still love that child and raise it. God did not plan for the LGBTQ to exist. But he loves them just the same.