Religion, at least the Abrahamic kind, is a recipe for morality. Even more, the law in modern countries, at least in the West, is shaped by Roman law and Christianity. Liberalism itself is an ideology that's strongly influenced by Judeo-Christian values.
If you think that you can separate politics from religion, I've got some news for you.
If you think that you can separate politics from religion, I've got some news for you.