The role of of religion in society is a tool for reconciling "thou shall not kill" and "thou shall kill every man, woman, child and livestock in Jericho" in the eyes of the unwashed masses, depending on the occasion and desire by the elite. Monotheistic religion just happens to be really good at this function. Atheism as practiced during French Revolution and 20th century Communist states were equally up to the task.