A non-religious person making judgements about the essential truth underlying religious practice is just prejudice. True understanding of reality does not come from the conceptual mind, but from deeper levels of one's being.
When a person like author writing scriptural text that god caused rain, hail, snow, lightning, thunder, and so on, demonstrated only their misunderstanding of reality of rain, hail, snow, lightning and thunder.
Saying “god did it” are just superstitions based on fear or ignorance or both; not “true understanding”.
It is the same superstition when people write about creation of universe, Earth, mountains, seas, life, especially creation of humans, don’t have any understanding at all.
Of course, you could make excuse and say these sacred writings are to be treated or interpreted as symbolic or metaphorical or allegorical, as “spiritual truths” or “divine inspirations”, it still show that authors and the people who believe in authors’ works, don’t understand the reality of what nature is and how nature work.
Sciences and religions are totally different packages.
Sure, when look at history, people who wrote ancient and medieval “science” treatises - under the broad umbrella of Natural Philosophy- have made numerous mistakes with their observations, but other people natural philosophers would later learn from mistakes of past natural philosophers.
Take for instance the two models of planetary motion - geocentric model and heliocentric model.
The geocentric model was a belief that the earth is fixed while the Sun, Moon and planets traverse the Earth sky, based on observations of these objects rising from the east and setting in the west. It suggested that the Earth was centre of planetary system.
The heliocentric model of planetary motion, rejected this geocentric model, instead postulated that the Sun is fixed in the centre, while planets including Earth, orbited around the Sun.
The Bronze Age Egyptian and Babylonian astronomers, and even the Iron Age Greek astronomers have for centuries have favour geocentric model for centuries, which accumulated in the 2nd century CE work of Claudius Ptolemy - Almagest - have defined astronomy in Europe and Near East for over a thousand years.
A 3rd century BCE astronomer, Aristarchus of Samos whose work on heliocentric model is lost, but the famous Syracusan inventor Archimedes recorded and summarized Aristarchus’ treatise in The Sand Reckoner. Very few Greek astronomers after Archimedes accepted Aristarchus’ heliocentric model was completely forgotten, especially after Ptolemy’s popular Almagest.
The 16th century Nicklaus Copernicus would reintroduce the unpopular Heliocentric model, which would be verified by Galileo’s discovery using a telescope in the early 17th century. Johannes Kepler would refine Copernicus’ with greater accuracy, while Isaac Newton would introduce Newtonian mechanics and gravity into the Heliocentric model.
The church at that time, had arrested Galileo for heresy, because the church have long accepted Ptolemy’s Almagest, as their truth.
Astronomers still make mistakes with their observations, but these too allow for corrections, updates or better models to replace obsolete models. And it is the same with other fields of physical sciences and natural sciences.
The points in all this, is to show you that scientists do make mistakes, but how later scientists learned from past errors and misinformation, and built on their discoveries to refined past works.
Religions relied on scriptures, and once written down, it remained unchanged, so the scriptural doctrines become dogma. So the errors found in scriptures don’t allow for corrections to be made.
Job 38 to 41, where god responded to Job’s question, with ranting about his powers about his so-called creation of everything, demonstrate the author’s superstition and ignorance about the ways nature work.
The Quran is no better than the Bible with misguided belief about natural phenomena. And non-Abrahamic religions demonstrate superstition too.
That’s the differences between science and religion.
Science allowed for corrections or complete replacements of the models. While religions often and fiercely reject to their scriptures, despite being wrong about their understanding of how nature work.