Most people don't like the raised tunnels in the lawn or the mole hills.
A big dog can be a great deterrent to a mole.
Not only do dogs see these animals as something to go and annoy if not outright attack, but the dog will usually make a lot of noise when one appears.
The barking will often scare away the mole.