Hospitals are a little different in that society has more of an incentive for longer shifts since shift changes end up killing people as the knowledge transfer isn't perfect from one shift to the next. That incentive makes it reasonable to treat healthcare workers a little differently from a legal perspective when compared with jobs with less societal benefit like making iPhones.