Fear of people seeing me seeing them

Hi

I'm not sure if my questions are even autism related or if it's just me but I'll ask anyway.

For the whole of my life, I've hated people outside seeing me in my house. Even if I'm stood looking out my window and a neighbour comes out of their house onto the street. I hide so they don't see me but it happens so often that they must have seen me hiding. If I bump into them outside or when leaving the house it isn't a problem but we've never brought up the weirdness of me hiding from them. Actually, now I think about it, if I see somebody I know in Tesco and they haven't seen me, I always hide.

So, my questions: is this an autism thing? Can I get over this fear of people seeing me seeing them? Should I bring up that weird behaviour next time I'm talking to a neighbour?

Thanks