Found this on another board and it does make sense
Killing with kindness
Because people love their pets so much, they often do things which
are inadvertently to the detriment of their pets. Many people feel
they are being mean if they don't give their pet everything they
want when they want it. This often starts on the first day the pet
joins the family and is immediately given free run of the home. The
intended goal is often to allow the animal to feel at home and
comfortable. However, the result is usually that they get into
trouble by eliminating in the wrong place or chewing an
inappropriate item. It is much kinder in the long run to set clear
rules and boundaries — much like with children — to help your pet
stay safe and ensure that he or she is with you for their whole
life.
Unfortunately, the result of not setting boundaries and helping your
pet learn how to behave is that they make mistakes that they are
then punished for. Worse yet, many otherwise lovely animals are
surrendered to shelters for simply behaving in a manner that was
permitted to become habit due to a lack of clear rules and
boundaries.
Focusing on punishments rather than rewards
Considering how much we love our animal companions, it is surprising
that one of the big mistakes people make is focusing on punishing
their pets for things they don't like rather than rewarding them for
what we consider good behavior. A perfect example of this is letting
a pup eliminate on the rug (by not supervising them properly) and
then yelling at them for doing so. Dogs think in pretty simple
terms, so it is unlikely they are thinking they are in trouble for
eliminating in the house. They probably think you don't like to see
them eliminate, so they learn to hide behind the couch to do so. In
this and most cases, punishments don't tend to be very effective and
often cause negative side effects as bad as or worse than what they
were intended to resolve.
Punishments are also likely to damage your relationship with your
pet. Instead, focus on managing them (using supervision and
confinement, such as keeping them on a leash or in a pet-proofed
room or crate) to set them up for success and rewarding for good
behavior. This will prevent problem behaviors from becoming habits,
reinforce appropriate behaviors and improve your bond with your pet.
Assuming your pet is a person in fur clothing
It's wonderful that most people adopt pets into their home as full-
fledged members of the family. However, while most pets adapt
incredibly well to living with people, many people forget they are
still animals. Keep in mind that pets tend to think in different and
often much simpler terms than we do. They aren't walking around all
day plotting how to get back at you for leaving them at home while
you go to work or to punish you for what you have or haven't done
for them lately. Accusing an animal of being spiteful or stubborn
does a great disservice to them and tends to create a barrier to a
healthy relationship.
So, the next time your dog digs in the yard, consider that he is
probably doing so because it is fun for dogs and he's probably
bored, not to punish you and ruin your newly planted yard.