I think we just have more time for creative endeavors like programming and art. Many people irl that I know are programmers but some have become teachers or doctors… If I were busy I wouldn’t be back in programming…
I think it is more related to the schizoid personality, those with that are much more likely to be interested in cold and isolated disciplines like programming, mathematics and philosophy.
But if we consider schizophrenics, not many of them are able to pursue these interests because of negative and cognitive symptoms.