Actually they do under exigent circumstances (which in this case apparently came from being chased by dogs - the second cop has a right to enter anyone's neighboring yard while in flight from a menacing dog.)
However, they were trespassing on the dog owner’s property as there were no exigent circumstances present when they entered.