The joke isn’t that they’re impersonating a medical professional. It’s that they’re impersonating the title of “doctor” by claiming a PhD. Someone with an Art History PhD is a doctor, but the joke here is that they aren’t really deserving of that title.