Hello LucyD: The Skeezyks can't really speak to the origin of such "compulsions". Someone with more knowledge of psychology could, perhaps, speak to the question of what causes a person to do this sort of thing. However, the thing I wanted to say is that you are not perverted!!! And there is no shame in this. It is simply an emotional / psychological "tic" you have developed... an habitual response most probably to social anxiety & stress.
From my perspective, the biggest problem here is the worry & shame this is causing you. Perhaps if you can find a way to let go of that, perhaps via some individual therapy, you will find that your need to catch glimpses of peoples' private parts will gradually dissolve. And even if it doesn't you will certainly feel a lot less guilty about it if you can just let go of the worry over being perverted & the shame that accompanies it. Please take care...