We do? Says who?
Why don't people who make hunting rifles or kitchen knives need this ethical code?
Cars can run over people on purpose; why do auto makers not need an ethical code about that, only about safety?
OK, let's step away from the strawman and discuss only software whose only conceivable use is killing people. Is that automatically evil, though? Say that your country is at war and your government orders you to write such a thing. If you don't you could be tried as a traitor.