The unfortunate truth is people who are enamored with programming find it so enticing because it's a part of the universe that works exactly the way you tell it (for better or worse). Kind of like how kids who are traumatized build forts to hide in or something.
If code doesn't do what you want there's a way to fix it and make it behave. There seems to be a correlation where the best programmers can't tolerate the unpredictability of other human beings or reality...
To be clear, yes I'm a programmer too, and yes I built forts as a kid so this is speaking from experience from talking to other IT/programmer people 😂 it's a common theme I've noticed.