He may perceive his own appetite for programming as being linked to some form of autism. Because, well, computers are not people, so it's nice to avoid people.
Given that there is a proven gender discrepancy in the distribution of autistic disorders, it's not completely absurd to imagine that men could biologically be more attracted to working with computers than women.