Prior to its outlawing in 374AD, infanticide was legal in the west. It was outlawed by a Christian Roman Emperor, Valentinian I. Prior to that, going back to the Greeks, the Ionians, etc. infanticide was well-practiced for thousands of years.
Ask your atheist friends why killing children is morally wrong.