How the fuck could people be surprised? Open a software job board. 50% of offers are by companies trying to optimize some data harvesting and analysis to better target some ads. Ads, the direct child of propaganda. So to everyone working in those kind of companies: you're not better ethically than people working on missile software. I'd say you're worse because you can argue missiles can be used as deterrent.
However, Software development is not a Profession, in the proper use of the term. It is not self-regulating the way Medicine, Engineering, Law, and a few others are.
There is no formal standard of ethical conduct in software for practitioners to use as a baseline for their own behaviour.