Dogs do not feel guilt and they don’t do things out of spite. But they do react with fear to displays of anger or frustration.
Dogs are blissfully innocent. They can’t tell the difference between an expensive shoe or a chew toy. And they don’t know that they should potty outdoors instead of on the carpet.
It’s up to us to teach them and to prevent mistakes until they learn the difference.