That's not a given. Look at the Old Testament, it professes that you shall not kill, but is also full of laws that are upheld by death, stories of just killings, etc and the whole thing is written via dictation from a war god.
In cultures where honor is a big thing, it can be seen as just to kill those who bring dishonor or to maintain honor.
In cultures where purity/cleanliness is a big thing, it can be seen as just to kill those who are impure/unclean.
Not as simple as murder bad