The horse was running after the dog out of pure spite, and the dog decided to run under the fence to safety. :P