Maybe back in the third world they pick up on their humans’ stress. There, they’d definitely attack at any opportunity.
Depending on where you're from, some places spay / neutering dogs is much less common. It can impact their behavior a great deal.
Local suburban / trained dogs around here mostly just want to play with each other / random people / kids. I think they might be used to that kinda lifestyle even if just by example from other dogs.
But with Canadians, I'm never scared of their dogs, because at worst they'll hump me!
Just a whole different lifestyle for those dogs.
If a rat were in your living room, you'd not want to go in there. Rats will almost never actually harm you, probably less than a dog. You can easily scare them out. But it's terrifying when one dashes across the room. It's biological/instinctive.
Yet an unknown dog in an unknown house that's actually aware of you and mad about it? No way. Off to another target.