The problem with your argument is that ignores god. God is all knowing and powerful, there was never any ''need'' of any of those laws, god could have made moral laws from the beginning and there would have been no ''primitive'' civilizations at all since they all of them would have followed God's rules, was it really that hard?
Yes he could have but then we would be slaves.
Why Does God Allow Evil?