Originally, it was supposed to be a court martial offence to "out" another soldier to a commander or officer. The biggest problem came 17-19 years later when commanders would start asking peers about someone they thought might be gay until they got a confirmation. Once they got the confirmation indirectly, they could start the process for a dishonorable discharge and screw someone out of their military pension. Nearly all of the "outings" were financially motivated.