Besides, if the military knows that the person is an exhibitionist (or a voyeur) at all, the person has likely already proven their lack of self-control.
Not necessarily, I can't remember exactly who it's for but I know that people wanting to join some parts of the US military have to basically 'fess up to everything they might be embarrassed about being or having done so that they can't be blackmailed.
A very close relative of mine is a civilian, and even though he is not part of the military, requires access to very sensitive sites which may or may not be to do with nuclear materials as part of his rather cool job. He has to issue a full disclosure as part of an interview with the MoD, who then via phone-call also interviewed close relatives as nominated by him. I was one of these. The interview was... odd, and invasive. Basically asking if I knew of things like his sexual preference, any affairs, drug use, childhood incidents of an unsavoury nature children, illegitimate children... basically any dirt on him that would make him a liability from a security or intelligence point of view. A second very close friend who just so happens to be a very high up and seriously security cleared military researcher/contractor (part private firm, part MoD) is basically forbidden form using social media, as things as innocuous as family photos could provide an "in" to manipulating/blackmailing him. In my experience, these things are taken very seriously, with damn good reason.
I have probably said too much. I am gonna go keep any eye out for the black choppers.