Why would it turn down billions in government contracts unless otherwise punished by its shareholders?
Because it's better for humanity? Because it's morally the right choice?
Most of the early research into computers was funded for military applications. There is a reason why the silicon valley became a hub for technological development.