You're getting it backwards. Religion co-opted morality, religion didn't CREATE morality. Chimps and bonobos learn to act morally toward each other.
Ethics are the things that allow us to live with other people.
Morals are the things that allow us to live with ourselves.
Ethics are the things that allow us to live with other people.
Morals are the things that allow us to live with ourselves.