Soviet psychiatrists famously aided Stalin in applying fake insanity diagnoses to political dissenters. The official explanation was that no sane person would declaim the Soviet government and Communism.
American psychologists created the American program of torture which was specially-crafted to produce false confessions to justify U.S. military policy. And see this.
And authoritarian American psychologists are eager to label anyone “taking a cynical stance toward politics, mistrusting authority, endorsing democratic practices, … and displaying an inquisitive, imaginative outlook” as worthy of a trip to the insane asylum. (Those traits may also get one labeled as a potential terrorist.)