id Software games: John Carmack wants to get old code out there, partly so students/others have some real-world examples to peruse and hack on rather than only toy games from textbooks, and partly because he's proud of a lot of his clever hacks and eventually wants them to see the light of day.
Axiom (computer algebra system): Someone starts a proprietary software company based on academic research, and it fails. One of the original researchers has a personal interest in getting the code released, so the project can continue.
Blender: Company goes bankrupt, and the original programmers want it to be open-sourced so their work doesn't disappear. Raise $100k to buy it from the creditors in bankruptcy.
Very few companies would be willing to just throw the code as is to the world. Usually they're going to want to go over that old code line by line to make sure it's fit for public consumption and doesn't contain intellectual property that they don't have a right to open source. All of that stuff costs money and engineering time and probably legal time as well.
They would also have to have some reason for doing it in the first place, something more than that it could be hypothetically interesting to hypothetical people. That's a leap of faith that few companies are willing to make, and the larger the company, the more people have to make that leap and sign on to it.
Having said that, I also wish that more companies would open source their old code (for academic reasons if nothing else). I just think the reason it doesn't happen more often is for really practical and predictable reasons, and not because those companies are totally oblivious to the idea or because they're evil or anything.
Back when the idea of a corporation was first formed (I do not remember the time frame) one of the requirements to complete the process of incorporation was to prove what you were going to do for the community around you.
I wonder how this idea got lost in the process...
I guess we'll see what they've done with it when the first computer program copyrights expire in around 50 years (assuming Disney doesn't buy anymore extensions).
It could be a huge PR boost. EA games got some good mileage out of releasing their older titles like Tiberian Sun as freeware. Imagine if they unleashed them as open source, and thus made them into a learning tool (like a textbook) for future generations.
The engineers are all busy working on new things. What product manager is going to say, hey, Fred, take off two weeks and take this random product from 1997 and see if it still builds at all, find the old dependencies, clean it up, talk to legal to see if we still own the rights to (x, y, z), and throw it up on GitHub -- just to expose some of our shoddy programming, last-minute hacks, vulgar comments cursing out other programmers, and maybe even some proprietary company information that we had no idea was in that code base.
There's no upside, but possibly plenty of unknown downside.