This is interesting enough. Dogs have a special relationship with humans, and this is dogs, in the wild, in human environments but while not being a pet.
The cats in Rome (and Athens) are pretty relaxed, spend all day in the sun on the ancient monuments, hassling tourists for a lick of ice-cream and stealing food, but also fed by the local nonnas.
There's a reddit video of a (?slum?) location celebrating when their local "adopted" street dog is found again after going missing for some time. People become attached to these dogs.
So there's a high degree of socialisation going on in some cases.