There aren’t many people out of the closet in repressive regimes, no, but it’s estimated that 5-10% of people will be somewhere on the gay spectrum if allowed (with substantial cultural variation on how they identify themselves and describe their sexuality, of course). It’s exceedingly unlikely that the people in Gaza are freak outliers in this regard, and the population is more than large enough for 5% to mean thousands of people.