In principal you are right. But you are only looking on each individual. If you look on bigger structures, the behavior you can observe in the tech industry makes more sense. It's easy to observe people operating in at least two different modes: The "individual" or "selfish" mode and the "hive" or "altruistic" mode. Usually your wetware operates in a mix of these two modes (possibly even more modes). From an evolutionary point of view this makes sense: A group of uncontrolled egotists would not survive very long in the wild. And if you look into society, we have a lot of narrative about how to control your "selfish" mode and how great it is to switch over in the "altruistic" mode.
My theory is the following: People in the tech industry work most of the time in the "hive"/"altruistic" mode. They want to be team players, don't see a problem with sacrificing something for the group. They control their ego most of the time, and even shy away from selfish behavior. They tell each other that loyalty to the group is very important and tolerate or even ignore it, when the group acts illoyal against them. Of course sometimes they still operate in the "selfish" mode. But then they use their presumed prestige, their perceived high pay or other perks to silent their ego.
So in a certain sense, tech workers are in the "hive" mode and fill the role of a "drone". It is a huge benefit for the group to have such members. For them it doesn't make much sense. Possibly the group exploits some social deficits of these drones to artificially trigger their "hive" mode through social manipulation for taking advantage of them - but I don't have any real proof of this. IT might also be possible that this is some kind of lottery that makes genetical sense: If you lose you get a drone and the group exploits you - but on average this leads to a benefit for everyone. Nevertheless it seems natural that just like real drones, these drones don't reproduce but sacrifice their resources for the benefit of the group.
It would be interesting, what convinced you, that "technical work" was the most important in your life, who profited from this (either by accident or deliberately) and what triggered you to change your mind.