Science itself is not closed to the idea. In fact it is perfectly open to the possibility of anything you can think of - God, aliens, fairies, ghosts, goblins, whatever you like. All it requires is that you propose evidence that can be tested via the scientific method.Even if there is evidence for God, we will never have consensual validation for it.
Context of discovery is the initial phase of research, in which observations, beliefs, information, and general knowledge lead to a new idea or a different way of thinking about some phenomenon.
How would we achieve this if we don't first validate the existence of God or at least be open to the idea?
It's not the fault of science that magic doesn't pass the scientific method.