Klinger was a work of fiction.
Within that fictional setting, the fictional character was trying to prove that he was insane and should therefore be discharged from the Army.
In one episode, Sidney Freeman told Klinger he could get his discharge but he would have to sign that he was a transvestite. Klinger told him, I’m not, I’m just nuts and want to get out.