Yes but it gives it to competitors as well, which is a problem.
Manufactures will probably check each others code to make sure none of their own code has been stolen and file lawsuits if it has.
Also, do you want officials to have to review and test one hundred different implementations of a safety critical piece of code, or would you prefer an evolution to a single standard shared code base, shared between manufacturers, for which all testing efforts are directed at new patches?