This is a good point. I obviously said the code was a joke but accessibility is something I was ignorant of early in my career when I was just trying to make the code work. Once I got some experience under my belt, I really focused on it as critical before shipping. And, surprisingly, I was always able to request extra funding for it.
Also, there’s easy tools to help you. I know VS Code has accessibility code linter extensions. I’m not as familiar with Xcode or others but I’d bet there’s something that at least treats it like a code warning if you do something that would make your web site gibberish to screen readers and the like.
We’re pretty much all gonna be disabled at some point. Some of us will piss off the mafia and be sank to the bottom a shallow sea while in our prime. But ideally, we all live to have vision problems or some other need for accessibility to exist.