Why is homosexualality a sin in whatever religion when people are born that way

There's that argument that God created Adam and Eve not Adam and Steve. But if being homosexual is really a sin why do gay people exist in the first place. Why were they created in the first place