How did gay people happen?

Homosexuality has been documented for more than 5,000 years. No one really knows why or how some people feel more attracted to members of their own sex and not the opposite sex. Some believe it will eventually be attributed to genetics, others believe it a curse from Satan (or other religion equivalent) .