@bholzer put it nicely. Google "chimps and bonobos demonstrate morality". Cooperation increased survivability and that generally has affected our acceptance of what is intrinsic to what feels right. Later religion slapped on meaning to it via super natural explanation which was the best bullshit they could come up with at the time. I get up voted on PC answers by the way but I should have cited some examples.