I amnot aware of any such requiewmwnt ... that is, that a person entering a building (or room)be able to turn on a light as they enter.
Logical? Sure. Common sense? No doubt. Good design? Absolutely. Code requirement? No way.

Now, residences do require an EXTERIOR light, controlled at the door. I suppose you could infer that some of this light would spill into the building, making your entry easier ... but that just a supposition.

I can think of many, many commercial buildings, and public areas, wher a deliberate effort was made to NOT have any accessible lighting controls.

Some of this is being indirectly sffected by the sundry 'energy' codes, which are calling for a variety of motion sensors and timers. Ironically enough, even these codes continue the presumption that your typical person isn't competent to operate a light switch.