It is not all about money, but microsoft had a net income of 101 billion last year, and a 36% profit margin.
I am not saying humans or AI can create "perfect" software, but NASA has shown there is a HUGE gap between what can be achieved and what commercial software has generally done. We have given software a pass on the liability for the damage it can caused when it is defective for too long, that's the only way to change this, it must hit the bottom line.
Is NASA software accessible over the public internet?