Murder destroys permanently the potential value creation from voluntary trade (goods and ideas), diminishing to a degree the probability of life continuing.
Therein it is a net negative to society and shouldn’t be done, and punished if done.
Killing in defence of society from external forces is net positive, protecting the existing society and way of life within it.
Life is the standard to determine between good and evil.