This dog is a combative genius. After observing how the goat attacks and seeing that it does not deviate from that method of attack - in this case, headbutting - the dog then instinctively counters by moving its head just slightly away before the goat's own head lands.