I let people pet my dog. I don't want him to think that people are scary or there's anything wrong with them. I don't want to teach him to mistrust.
I'm lucky in that he loves people, especially kids.
Not all doggies do though. We have to do what's right for OUR pets, regardless of what others do for theirs.