Either the woman who called in the complaint made a mistake, was actively trying to cause you a problem, or there actually was someone your size, gender, approximate age and coloration wearing similar clothes, looking into her car.
The officer was just doing his job. Was he courteous, professional? Were you free to go on your way promptly, after the exchange? Did he follow you or something, afterwards? I’m not sure why the upset.
Go back and reread my comment number 1. I am not upset. Nor do I seek any consequences for the officers, who I assume were following SOP. My purpose is to glean information and opinions.
If the woman didn’t know the name of the man looking in her car, what good would it be for the cop to see the i.d. of anyone?
Truth be known the cop was probably just being nosey...and a cop.