I remember hearing this saying once, “You may have a theory about your dog, but he certainly does NOT have a theory about you.”
They are dogs. They respond to stimuli and act as a member of a social pack. Sometimes you are the alpha dog. Sometimes the dog things you are a stupid wimp and has to take over.