Hospitals operate 24×7. Someone has to work those shifts. Usually it ends up being the employee with the least seniority. What's the alternative?
The problem is that they had two consecutive shifts.
The alternative is that the hospital hires enough people so they can schedule them such that everybody has time to go home relax and sleep after they are done with a shift.
Yeah, let's keep not evolving as a species.