Im guessing they will have been told that the real reason was transphobia and the accusation of racism was just to cover this up.
This is very likely, I suspect. I'd really, really like to know how the employing manager verified their reasons for leaving their last post though.
It's a shame CQC is captured. If health organisations were actually held to account for not following recruitment regulations, we might see less of this.