I think it's a defense against anti-trust attacks. Bell Labs did a TON of this in 60's and 70's when they owned most of the phone lines, service contracts, AND TELEPHONES THEMSELVES in the USA.
I believe companies open source their research efforts as a thing to point to when regulators come so they can say "look at all the good our cash-faucet monopoly provides the economy!!"