That is not actually correct. Rather, it is that science does not consider miracles. The hypothesis of miracles is not allowed from the get go. It is begging the question, circular reasoning, therefore to argue it teaches or finds that there are no miracles. That is a trivially absurd argument.
As the non-theist Eugenia Scott of the NSCE correctly explains
Because creationists explain natural phenomena by saying “God performed a miracle,” we tell them that they are not doing science. This is easy to understand. The flip side, though, is that if science is limited by methodological [naturalism] because of our inability to control an omnipotent power’s interference in nature, both “God did it” and “God didn’t do it” fail as scientific statements. Properly understood, the principle of methodological [naturalism] requires neutrality towards God; we cannot say, wearing our scientist hats, whether God does or does not act.
Science is silent on God. Science is silent on miracles. Do not mistake silence, however, for denial. Silence is not absence.