It is partially attributable to the activation of "mirror neurons".
A mirror neuron is a neuron that flames both when a creature demonstrations and when the creature watches a similar activity performed by another. In this manner, the neuron "reflects" the conduct of alternate, as if the onlooker were itself acting. Such neurons have been seen in primate species.