Perhaps the thing we call empathy is just a strange side effect of the negative subconscious feedback a member of group-oriented species gets when their friend is, or is going to be harmed, physically or otherwise.  
The choice between gaining&#x2F;saving an ally or gaining a treat can certainly be a selfish one, and in my opinion most likely is.