Perhaps all these are factors: genetic predispositions, exposures to hormones in the womb, sexual molestation. It’s not necessarily all-or-nothing.
people that would never consider homosexual acts might feel free to "explore" especially if they strike out with the opposite sex....