Roughly 10% is non-straight, if we go by Kinsey's numbers. I don't trust contemporary numbers at all, too much social desirability bias.
Not disagreeing on religious conservatives either, but the spectrum of motivations is likely broader than just the stereotypical closet case.
- They're away from their core social group, so feel more freedom to make disapproved choices.
- There's a complex linkage between taboo and sexuality, and certain taboos will be most salient under those conditions.
- They may be less capable of hiding their habits when out of their comfort zone.
But yeah, a lot of hypocrites out there. Sadly decline in religiosity over time doesnt seem to seems to reduce the number of scolds and hypocrites. They just preach racism or climate instead...