Many people think that their dogs understand when they've done something wrong because of the guilt they show on their faces. The truth is that dogs know when their masters are mad at them, but they don't know why.
Potty Training Dog
Dogs can't associate what they are doing with their master's anger even a few minutes after the annoying act has taken place.
But, put yourself in the dog's place: Wouldn't it be cool to do what you have to do in any place you want to?
Besides, why would he have to respect your house, anyway? It's not that simple, the truth is that dogs do need house training.