Empathy... that's the word...
"Empathy is the capacity to recognize and, to some extent, share feelings (such as sadness or happiness) that are being experienced by another sentient or semi-sentient being. Someone may need to have a certain amount of empathy before they are able to feel compassion...."