Likely because it's far more complicated than Newtonian gravity and he wouldn't have been aware of the shortcomings of his theory e.g. Mercury's orbit. Also, the study of light was only just beginning in Newton's era - Ole Rømer's measurement of the speed of light was in 1676, but Maxwell's theories didn't come out until 1865.