>which makes sense since everyone benefits from open source code.
Companies (and people in general the last 30 years) have not concerned themselves with doing things to benefit everyone. I'm sure open sourcing code would be better overall, but I don't see that happening with most major software.