Perhaps the following example shows how science and philosophy can be different.
When we consider quantum mechanics, science is able to model reality with QM maths, matching what is observed with what is calculated by the model. Note that science doesn't have to answer the question: How does the mechanism of quantum mechanics work? Or what is QM?
If we do ask, 'How does quantum mechanics work?', this perhaps leads to philosophical reasoning. For example, on trying to explain QM, we note that it has aspects that are very difficult to explain in physical terms, such as quantum spin, quantum entanglement, etc.
So philosophically, we could use the inexplicable physical aspect of QM to arrive at the conclusion that we exist in a simulation! ...since a simulation could have QM in it without the necessity to have a physical mechanism for that QM (which of course reality must do).