You are placing boundaries, that didn’t exist in the same way they do now, on Newton’s work. To Newton, there would have been little distinction between religion, science, and philosophy. They were all so intertwined in his views as to make it absurd to talk about them as purely separate entities