Why do religious people (Christians and Muslims are main culprits that I’ve seen though) so dedicated to the idea that so—called ‘scientific miracles’ exist in the Bible and the Quran respectively? By the internal logic of religions, wouldn’t this defeat the entire point of faith as it is thought about in them?
100% correct. It's really weird.
They act like faith is a valid alternate form of knowledge production. They say things like "science can't know everything" and "god is beyond human conception" and "it's arrogant (or sometimes, sad) to think there isn't anything other than what science can find."
And then they torpedo the whole thing by saying things about "scientific miracles," things that science has (supposedly) verified. Which is another way of saying "yes, my god can be tested and verified" - if not the god, then at least its footprints on our reality.
These are two completely contradictory claims. They defend the absence of their god by saying it's undetectable, then insist it has been detected.
What's also true though is that it makes their scripture and their god subservient to the scientific process. That is, the bible and quran are not authoritative. If they were, then you could reliably derive divine truth through the scripture without having to "resort" to validating it with mere human science.
It's therefore an admission of the worthlessness of "faith." If "faith" was epistemologically (how we decide what is true) valid and reliable, why would anything held through faith need to be scientifically accurate?
Religious scholars insisted for centuries that the Earth was flat because their book said so. It was the Truth™, and those who said otherwise were blaspheming heretics and liars. Now religious apologists try to pretend that their scripture knew it all along, such as pretending that a circle is the same as a sphere (or spheroid), or that "spreading" the Earth out means stretching it like an ostrich egg... despite the Earth being an oblate spheroid, not a prolate spheroid (egg) anyway.
What this means is that humans can't derive knowledge from scriptures. It means their god doesn't know the shape of the Earth, or can't communicate it accurately. It means divine knowledge must be adjudicated by human knowledge. Worse, it means divine knowledge is altered by human knowledge, since it means that, like divine morality, what "god" knows is beholden to, and changes based on, what man knows.
Whenever "scientific miracles" comes up, I like to refer to the following lists:
https://rationalwiki.org/wiki/Biblical_scientific_foreknowledge#Criteria_for_actual_foreknowledge
In order for a statement to be Biblical scientific foreknowledge, it must fit five criteria:
1. It must be correct. A statement cannot be scientific foreknowledge if it is incorrect, because the scientific method necessarily eschews incorrect data.
2. It must be in the Bible. A statement cannot be Biblical scientific foreknowledge if it isn't in the Bible, because the only possible source of Biblical scientific foreknowledge is the Bible.
3. It must be unambiguous. A statement cannot be scientific foreknowledge if it is ambiguous, both because science is necessarily precise and because ambiguity allows modern science to be shoehorned into ancient religion when none is present.
4. It must have been outside of contemporary knowledge. A statement cannot be scientific foreknowledge if it was already known, because this makes the "foreknowledge" into merely "knowledge" and makes divine intervention unnecessary.
5. It must have been outside of contemporary technology. A statement cannot be considered scientific foreknowledge if it was knowable with the technology of the time, because this makes divine intervention unnecessary.
https://rationalwiki.org/wiki/Qur%27anic_scientific_foreknowledge#Criteria_for_scientific_foreknowledge
For a statement to be Qur'anic foreknowledge, it must fit all of the five following criteria:
1. It must be accurate. A statement cannot be Qur'anic foreknowledge if it is not accurate, because knowledge (and thus foreknowledge) excludes inaccurate statements. TLDR: It's true.
2. It must be in the Qur'an. A statement cannot be Qur'anic foreknowledge if it is not in the Qur'an, because Qur'anic by definition foreknowledge can only come from the Qur'an itself, rather than modern reinterpretations of the text. TLDR: It's in plain words in the Qur'an.
3. It must be precise and unambiguous. A statement cannot be Qur'anic foreknowledge if meaningless philosophical musings or multiple possible ideas could fulfill the foreknowledge, because ambiguity prevents one from knowing whether the foreknowledge was intentional rather than accidental. TLDR: Vague "predictions" don't count.
4. It must be improbable. A statement cannot be Qur'anic foreknowledge if it reasonably could be the result of a pure guess, because foreknowledge requires a person to actually know something true, while a correct guess doesn't mean that the guesser knows anything. This also excludes contemporary beliefs that happened be true but were believed to be true without solid evidence. TLDR: Lucky guesses don't count.
5. It must have been unknown. A statement cannot be Qur'anic foreknowledge if it reasonably could be the result of an educated guess based off contemporary knowledge, because foreknowledge requires a person to know a statement when it would have been impossible, outside of supernatural power, for that person to know it. TLDR: Ideas of the time don't count.
I've never seen anything survive past #3 in either case. And that's even with being extremely generous about #1 and #2.
Every single time you can tell it's some kind of metaphorical or poetic re-interpretation with 20/20 hindsight.
What's more troubling is that the "scientific miracles" claim always reveals a profound lack of understanding of how science works. Science must account for all the data, not just the "hits" but the "misses." If it’s going to ignore something, it must explain why, or build into the theory the limitations of the particular principle. If we found a single Precambrian rabbit, theists would be on the warpath that evolution is wrong. And they probably should be.
But what's abundantly clear is that they deflect, distract, make stupid excuses, or just don’t care about the many, many misses in their own scripture. Okay, so the bible/quran says the Earth is "round" - they don't, and insist it's flat, even though this was already known among the Greeks - but let's push past that. Jesus thinks that disease is caused by demons, and Allah thinks that sperm comes from between the spine and the ribs, and both books insist that the Earth was formed before the stars, including the sun, and that the moon is its own source of light.
https://yourlogicalfallacyis.com/the-texas-sharpshooter
Those are metaphors, we're told. Except that once again, we can only know that by judging the divine knowledge through the authority of science, and only after the fact. If you squint. And don't take it too seriously. Or literally. Or misrepresent a complex principle in overly simplistic terms, Or take statements that aren't prophecies and pretend they are.
It's all very tiresome, and it all comes back to the same problem, as you said: recognition that science is how we accurately describe the world, but all they have is faith.