ethics and morals dont rely on religion they generally revolves around the needs and functions of society, basic things like don't kill everyone etc promote growth and hence the societies who generally follow this become larger and more dominant than the ones who don't so eventually the morals...