Painfully, as I understand it, it is the other way around. Pilots can’t see psychiatrists/therapists because if they get diagnosed with anything they lose their license.
Similar to how surgeons can get their hands ensured. (Not sure if this surgeon piece is even true, or just an idea that goes around)