We have a lot more important things to worry about than dog s**t, and so does Spain. When I was growing up we had no leash laws. Every dog in the neighborhood pretty much shat wherever they felt the urge, and nobody gave rat’s ass. It was a better time and, dare I say, a better country to grow up in.
I would suggest that that town in Spain collects taxes in part to pay street sweepers. Of course the street sweepers don’t do their job, rather they solicit busybody volunteers.
As always, they promise to do a job if they can get a tax, then don’t do the job, and then blame someone else for them not doing the job for which they are paid.