Specific to American companies
What you write is specific to American companies, mainly the application of manufacturing models to knowledge based fields. That economic model is considered inferior by most of the world.
In Asia, programmers are not wage slaves. Programmers in Asia are compensated by being given more responsibility and much higher salaries than U.S.. relative to the cost of living.
In U.S., as you say, there is no compensation for software royalties. In Asia, companies reward programmers by giving them more influence in the company. The software asian programmers create is considered a reinvestment in the company and so are the people who write it. Asian programmers can expect to run the company if they apply themselves to software development.
Asian companies recognized that the tools of software development are equally accessible to everyone and the lowest worker could now be just as influential as the highest executive. Asian companies take in ideas not just from the highest executives but from the lowest programmers. There are no multilayered management structures, actively filtering information from subordinates. Everyone has access to everything.
Compare this to the reality in America, where programmers are expected to play dumb and report to dozens of low end managers. American companies are so backwards in the modern world that when Kim Jong Ill nukes U.S., it's going to be considered a mercy killing.
Who knows what the right answer is
In 1910 most women were seamstresses, working 12 hours a day in dangerous conditions. In 1943 most women were geeks, working on the electrical and mechanical underworkings of wartime machinery. Today most women are secretaries, working 12 hours a day and getting carpel tunnel instead of burning in fires.
History has proven that in any industry where one person was able to provide the needs of two, the women have dropped out and the men have been expected to provide. That equation is obeyed in the IT industry as surely as the sun sets. The only difference between today and 1955 is that today's women are dropping out by their own choice. You'd think we'd be heading to some right answer but obviously women have assumed many roles, sometimes better than what they do now.