It seems like a very individual natural selection-based idea.
I’ve personally always wondered if there could be tribe-level selection for tribes with some non-heterosexual members.
But I also have personal experience, and I’ve met others who do as well, with life experiences that make me wonder if they could somehow affect sexuality. I know it might be presumptuous of me to consider the idea, but it’s only just an idea—one I usually keep to myself.