I think it's a complicated situation.
In my late teens and early 20s, my best friend was a gay man. He was already out when we met. But we both enjoyed people thinking we were a couple. He said that meeting people for the first time, was generally easier when people think he is straight.
We loved eachother deeply, but were both aware it could only ever be friendship. Ita hatd to explain. If I could have chosen to marry and be happy with anyone, it would have been him, he felt the same. The problem was we just didnt fancy eachother and had no inclination to have sex.
But I can see how a man or woman may meet someone they love, though not fancy, and that person gives them a life that's more accepted that they can convince themseleves it will be ok.
Many people know they are gay, but try and ignored it. Try to pretend its not true. That if the pursue the 'normal' hero set up, they will be fine. They can ignore it. They bury their heads because they dont want to deal with the fall out of it all. And I believe it's mainly sub conscious.
I have to say though in my 30s, I know far more women who have left their husbands for other women, than men leaving for other men. Most of the women I know have at least suspected they have been attracted to women since their teens.