Why do gay celebrities often date women?

This is just something i've noticed. Many closeted gay celebs date or marry women, and the relationships (if not married) often last a couple of years, until they move on to the next person. It's either this or they stay single for a long time.
Why do gay celebs pretend to be straight and date women when it's 2024? I know one reason is that their careers could possibly get negatively impacted if they came out as gay, but why can't they just stay single and date men behind closed doors?
Not only do they live together with these women, they also marry them and even have children with them, which is odd to me. The spouses are often aware that they're gay.

Hollywood is FULL of closeted gays who do this and they're often huge "womanizers" when they aren't even into women. I know tons of celebs like this. These men aren't bisexuals, since bisexual men are rare and they're usually mostly gay (i read this somewhere).

So why is this?

Why do gay celebrities often date women?
Post Opinion