University education in India for pure sciences is 3 yrs for an undergraduate course, so even if he attended any college he would taken up courses only for the first year. Once he failed his exams in the first yr he cannot continue the education and study second and third yr courses in mathematics, which is why i think he was probably an autodidact in mathematics.
You are right https://en.wikipedia.org/wiki/Doctor_of_Philosophy
The term appeared after 1652 in Germany, although Doctorates existed before that but these were used interchangeably for Masters Degree.