When people are walking on sidewalks, their subconscious may be telling them they are trespassing. They are trespassing on the territory for dogs.
This episode is also available as a blog post: http://hypothesis-discovery.com/2021/06/02/influence-of-dogs-on-city-sidewalk-character/