M.A. was the highest degree available in the UK at the time [1]. The closest equivalent to a PhD program might be the Prize Fellowship that Hardy had from 1900 to 1906, though it's certainly not one to one. Don't get the impression that Hardy was done with his education when he got his masters degree.
https://en.wikipedia.org/wiki/John_Edensor_Littlewood
Edit: The Mathematics Genealogy Project lists Littlewood as an M.A. as well.
https://www.mathgenealogy.org/id.php?id=10463