It goes even deeper than that. At the time at Cambridge there was only one subject to study, called the Tripos, which included all these things. Overtime they've gradually stripped parts of the course into their own separate subjects. The only thing left is mathematics, which leads to a curious ceremony when you graduate with a maths degree which none of the other subjects have. So to Newton Theology and Maths were taught in the same major!