I kinda feel the opposite about some specializations in medicine. Why does a psychiatrist need to know about the bone structure of the ankle? They're never going to use half their medical training.
One imagines the same reasons you would learn Unix and DSA even if your job is writing GET handlers and wrestling Python venvs. Gives you some base system-level context even if rarely immediately useful.