I think a distinction needs to be made between morality and social dynamics, the former being an evaluation and the latter being behaviors subject to selection pressures. Morality is an emergent property of social dynamics and higher cognitive processes.
I make this distinction because while some animals display social behaviors that benefit a group and thus would be selected against, they do so not because of any conscious understanding of this process, but because it is an innate and evolved response to certain situations, in the same way that it is not morally bad for a human with serious impediments to their cognitive abilities to hurt someone because they lack the understanding of their actions it is equally not morally bad or good amongst these animals to hurt or help each other.
Thus I see morality as an emergent property of other evolved abilities and not something that was it's self evolved.
I make this distinction because while some animals display social behaviors that benefit a group and thus would be selected against, they do so not because of any conscious understanding of this process, but because it is an innate and evolved response to certain situations, in the same way that it is not morally bad for a human with serious impediments to their cognitive abilities to hurt someone because they lack the understanding of their actions it is equally not morally bad or good amongst these animals to hurt or help each other.
Thus I see morality as an emergent property of other evolved abilities and not something that was it's self evolved.
.