Not every doc finishes at the top of the class but they still get called doc.
Old joke
What do you call the man who finished at the bottom of his class in medical school?
Doctor