Back in the day, engaging in homosexual behavior, let alone being a tranny, was automatic disqualification for obtaining a security clearance, and in most cases ANY federal job at all.
Why? Two major reasons:
First, most homosexuals suffer from some sort of mental disturbance and are emotionally unstable (ditto for someone who can’t decide what they are).
Second, the above instability renders such individuals highly subject to being blackmailed by foreign governments.
You can’t change human nature and it is folly to try.
When you have a pervert in the WH, everything goes.