I think you'll find that morals & ethics were very much the work of kings rather than gods, up until the time The Torah was written. That was when the demarkation dispute began.
This is incorrect. Zoroastrianism had moral and ethical codes and it predates the Torah.