So what's god's purpose to have made homosexuality and then spread throughout nature?
It's a genetic defect no different than hemophilia or albinism. Anything that hinders reproduction and the furtherance of a species is a defect.
It's a harmless defect in humans until it becomes a political issue in the hands of leftists who use it as a tool to break down society (such as recruiting young children to become transexuals or question their own normal sexuality).
Homosexuality per se is nothing to be concerned with, in my view. When it becomes organized and politicized however it is evil and sinister.