Laws are set up to protect citizens over property and pets. And so, the dog does not have self defense rights.
Most places have a leash law to protect citizens. The dog was not on a leash and owner was no where to be seen. So either it escaped an enclosure, unbeknownst to the owner, and ran into...