There is no such thing as a wrong behavior. To the dog, there is simply behavior. However, there is rewarded behavior vs. punished behavior vs. neutral behavior. To humans, we classify things as "good" and "bad" or "desired" and "undesired". Humans have this odd concept of "wrong" and "right".

So when a dog performs a "wrong" behavior, or an undesired behavior, it is simply a miscommunication between dog and human.

Dog sees the behavior as is. Human sees it as wrong. Dog doesn't know NOT to perform it unless there is a punishment or alternative behavior w/ stronger reward. So WHY? It all lies in the efficiency and efficacy of the human-dog communication.