Essentially, it's treated as an abbreviation where the initial letter of a postpositive (a word that comes after the noun it modifies) is lowercase, while the others are uppercase. Similar abbreviations follow this convention (e.g., MA, BA, etc.). The "Ph" represents "Philosophy" which is postpositive to the noun "Doctor."