The first time a dog shoves its nose under a still hand, most people reach down and scratch behind the ears without thinking.