Morality is intersubjective. If you do something that violates the moral standards of a community, the community will react negatively. Depending on what you did and on the community's way of dealing with violations this could get you ostracized, physically exiled, imprisoned or killed.
If a community's moral code creates a dangerous environment (e.g. no law against murder), the resulting chaos will drive people away. Communities that are stable over the long term tend to have protective codes (do not steal, do not kill, and so on) and chaotic communities tend to be short-lived. Thus, there is a bias towards orderly communities with similar moral codes.
Christianity does not own this process. No religion does. It's simply an expression of the desire of individuals to live in safe, stable environments.
If a community's moral code creates a dangerous environment (e.g. no law against murder), the resulting chaos will drive people away. Communities that are stable over the long term tend to have protective codes (do not steal, do not kill, and so on) and chaotic communities tend to be short-lived. Thus, there is a bias towards orderly communities with similar moral codes.
Christianity does not own this process. No religion does. It's simply an expression of the desire of individuals to live in safe, stable environments.