If a doctor harangued a nurse like that over a small thing, he or she would be appropriately criticized. Doctors, at least some of them, can be labelled as haughty egotists who fly off the handle and really lay into people. Sometimes that criticism is accurate and deserved. However, it's not just doctors in hospitals who can belittle another person. I think it's anyone who has a position of authority over another person.
I remember as a medical student being scolded by nurses; scrub nurses in the operating room come especially to mind. My first month in the NICU as a resident was no picnic, either. It's a strange new environment, and although most of the nurses were pretty nice and understanding, there were some who used their familiarity with things and our unfamiliarity to give us a hard time and make us feel ignorant. Also, I worked as an orderly during summers in college. Trust me, nurses can be just as snippy and hard on orderlies as doctors can be to nurses.
So if you're not a physician and get disgusted when you see one acting like a pompous ass, think twice about how you would act towards a person subjugate to you in the same situation. Although we don't condone it, probably most of us at one time or another have been hard on someone lower than us on the social totem pole at work. Doctors just happen to be higher on that totem pole than most people. That's not justification for bad behavior, of course, but perhaps might give us pause before we're too critical.