Science is descriptive where religion is prescriptive. Granted there are some origin storys in religion (Eve's sin or Noah's rainbow) but we've had people dismissing their own fables back in the classical age, instead trying to hypothesize how things are really.
This is how Adonai can be a total git and yet declared as just and righteous and benevolent by fiat, what raises challenges to the properties of justice, righteousness or benevolence. Apologists usually retreat to semantics.
Science has its own approach to morality, which is to frame it as a consequentialist formula. Exempli gratia, looking at the histories of civilization, we can see that whenever the bourgoisie neglects the needs of the proletariat, civil unrest, genocide and war follow. Therefore, we might infer that a) the bourgeoisie might be able to defer civic collapse by establishing and enforcing unconditional civil rights and accommodations for its population, and b) that no society has ever been able to do this in perpetuity. The thousand year reich is still a fiction.
The religious equivalent is scriptural passages to kings ( govern wisely ) and to bonded servants, ( obey ), without any elaboration on the mechanics or consequences.
Consensus among religious scholars is that scripture (whether Christian, Muslim, Hellenic, Nubian or whatever) are just early attempts at moral philosophy distilled down to divine command theory, which is very basic deontological ethics (creed-based ethics). With centuries (and centuries) of further thought on the matter, our religious ministries have focused more on profiteering than on keeping up with the times.