I think it’s just that computers and programming are a really good escape from the world around you and that attracts anyone who feels in some way trapped or unseen in real life, especially with open source software where you really are free to make your computer into your own customized personal little world where you feel safe.
Somewhere around 2017 I bought an old dell precision from 2011 for $25, put a radeon rx 570 in it a few years later and used it as my main computer until last year when I finally got around to building a replacement