Most British & American traitors have always turned out to have been perverts...
Not sure about all being gay but Brit Kim Philby and his fellow spies from College were gay and communist and recruited by the Soviets in university. Most spies have a large ego to believe they will not get caught and many are classic narcissists.