Morals came from our social nature as an evolutionary adaptation. And our sense of ethics and morals actually predate our humanity.
Specifically, they came from our ability to empathize with the people around us.
Where do you think your morals come from? Science?
That’s an absurd question. Science isn’t a creative force. It’s a process by which we learn about the world around us; by making observations, forming an explanation for those observations, and testing those explanations.