wolves have evolved to live in packs where they are pretty much all related,a wolves cubs have better chance of survival if the pack is strong,so those who displayed more altruistic (see link above) behaviour survived to breed those who were selfish at the expense of the pack as a whole may have lived well themselves,but the pack would of suffered and their offspring would of been less likely to survive (natural selection).
it's the same with people.