Most dogs will protect their territory, and bark at someone they don’t know. So now it’s standard procedure to shoot the dog. Or the old man with a TV remote.
I have had dogs bark at me and approach me in a threatening manner. I was never once bitten.