Psychological phenomena is called something like the "Breastplate of Righteousness" Its a self-delusion in some cases, and in others its just "that is what happens on the DL and the rest of it is for show". A good point of reference is the guy who wrote the book about his time in the GOP Stuart Stevens, who talked about how many of his fellow GOP operatives were gay.