Why did the doctor get mad?
Because he was losing his patients.
Listen up, buttercup! This joke is all about wordplay. The doctor is "losing" his patients in two ways: he's getting angry (losing his cool), and his patients are dying (losing their lives). Get it? I bet you don't.