I would say that the problem of adopting the view that "morals evolved" by the mechanism of random mutations and natural selection. Is that we as humans hold many moral values that go beyond the survival of our specie.
As I said before.
Behaviors (morality is a
behavior) can be both innate and learned. Often they're both, with enculturated details built upon innate behaviors. Some morals are functional; some just traditional. Some are both.
For example if someone publishes a study with conclusive evidence that shows that by killing humans older than 70yo the economy will improve, poverty levels would drop and global warming would stop (and therefore making the survival of our specie more viable) it wouldn't be morally justifiable to kill all 70+yo humans....
Yet, historically, eliminating unwanted demographics is often considered moral. Some people even consider war moral and proper behavior.
Not killing members of your own tribe is functional. Natural selection eliminated individuals who tended to do this, and positively selected for co-operative individuals. Killing members of competing tribes sometimes
was expedient, so was often considered moral. After thousands of generations, with natural selection eliminating in-group unco-operatives and selecting
for out-group competition, this psychology becomes generalized and innate.
With civilization and cosmopolitanism, the in-group becomes large and supra-tribal, while our innate loyalties and moral universes remain limited by
Dunbar's number
This is where learned, enculturated morality comes to the fore, as an extension of innate morality.