There were a lot of those everywhere, because it's a natural part of human variation, like left-handedness (which some religions also think is sinful).
When Christian people start talking about how the old guys who wrote Leviticus told them that gayness is sinful, it's a case of "When I was a child, I thought as a child, I believed as a child, but when I became a man I put aside childish things."