I had an uncle who was a flaming gay. Knowing his mother (my grandmother) as I did, I’m pretty sure in retrospect that he was trained into it.
I’ve always heard that an overprotective mother produces a homo male and an absent father produces a female homo. At the end of the day, for many of them, it ain’t their fault.