Even if you want to burn down my house and murder me because I wronged you or slighted your family, that's not morally correct. We have secular law to codify what we see as morally right and I think it makes sense that before states really existed or unified people through national myths, that function was served by Gods