I work nights as a nurse, similar overtime situations to doctors. How exactly is night shift at IT not programming?
If you mean the former, then yeah, these people might work in shift, but usually don't (they might work in shifts only if the organization they support needs 24 hour technical support, or NOC, as I've already mentioned), which most organization don't need. This technical support interpretation of IT is very rarely programming anything (exceptions are SREs or PEs in large companies where there's so much complexity in their in-house infrastructure that they need tech support to program).
In the later case, there's no need for most of IT to work in shifts. Definitely not at night. Same way how there's no need for accountants to work in shifts (and definitely not at night).