The riddle
When Is a Doctor Most Annoyed?
AnswerWhen he is out of patients
Patients or patience
The answer plays on two words that are nearly the same. Patience means staying calm while waiting, and a patient is a person who receives care from a health professional. To be out of patience is to be annoyed. To be out of patients, in a doctor's life, would mean an empty waiting room, which is a different problem the joke ignores.
How close the sounds are
In careful speech the endings differ, a plain s against a t followed by s, but in a quick sentence they blur together. That small gap is the reason the riddle works better said aloud at normal speed.
One root for both
The two words come from one root, which is why they are spelled almost alike.