There are lots of dogs in Barcelona. You will see people walking them all the time. But if you walk by one of them islands in the middle of the sidewalk and it smell like dog.. Sh%$·.
This is the reason for the smell. It is also a danger zone for walking always.
I have only stepped in one so far.