Alternatively it could just be that animals that live in herds are more successful if they cooperate rather than antagonise the group and will often reap rewards for positive behaviour.
Cantleave this is very true. Evolution shows success can be improved through cooperation, then bam, now you have society, what keeps society strong, certain standards.
Anyone who says morals come from knowing the Supreme Being (yhwh) who sheep herders made up not so long ago, how do you explain social "moral" standards present in ancient isolated tribes complete untouched by our silly middle easter religions (and the've been around since before your supposed YHWH made man). Because they are the same evolutionary success story.
So certain basics are inherent to a strong social group trying to survive, ie don't murder your fellow tribe member, don't steal from him, and so on. Basics!