The dog and the human attachment
When he leaves the breeder, the puppy transfers the vital attachment he had to his mother onto a member of his new family.
This is usually whoever spends the most time with him right after he leaves the breeder. This bond will evolve, and after detachment and puberty will be shaped by sexuality and by the hierarchical order that becomes established. In adulthood, the dog will be attached to the people who dominate him. They are his guides, the ones he can rely on, because they are the ones who look after his needs.
The dog is programmed to follow whoever is best able to ensure his survival, so some dogs may want to follow and go off with people other than their owner. This depends on the dog's individual sensitivity, but above all on his hierarchical position.
Above all, the dog is "faithful" to whoever dominates him.
Want the complete method? Everything in this article is part of my online course — obedience and behavior problems, step by step, without treats.