Because your lawnmower is loud and threatening, dogs attack it.
Most dogs will either use their fight or flight response when they see a lawnmower.
The most classic reaction of dogs is fight as they often growl, bark, lunge, bite, and circle around the machine.