Dogs may dig in the yard for several reasons, including instinctual behavior, seeking entertainment or attention, creating a cool spot to lay in on hot days, hunting small animals or insects, burying items like bones or toys, or trying to escape if they are feeling anxious or bored.