Programmers aren't all the same person. People have different hobbies, lifestyles, interests. Just because someone's interested in programming, or their job is a programmer, doesn't mean they should enjoy non-visual things like music, languages etc. Some may enjoy running, skateboarding, dancing, stamp collecting. I think what I'm trying to say is, programming is just another part of someone's character, not their whole character.
Visual activities where you change focus, like drawing and photography, do not strain your eyes and might be good for your vision. One of the problems with staring at a screen is that your eyes maintain the same focus distance.