They have been selectively bred through generations to pay attention to people, and MRI scans show that dog brains respond to praise from their owners just as strongly as they do to food (and for some dogs, praise is an even more effective incentive than food).