Hope this discovery will influence hospital lighting policies.
You - as a patient - often have time to sleep unlike in your daily life. And the hospital is often going to wake you up nonetheless: It is, generally, more important to take your vitals than it is to allow you uninterrupted sleep.
They also need to look out for safety. You have a bunch of patients who are feeling poorly. Some aren't quite sober due to pain medications. All in an unfamiliar setting. A bit of light makes it safer to move around at night if you should need to. Sure, a patient can control lights, but not everyone will be able to. In some areas, you are sharing a room, too.
All that said: For my last hospital stay, the room got as dark as I wanted at night - but I'm not sure that would have been the same during the summer (I can read outside at night during the summer).