Why is it illegal to kill people

Killing people is illegal because it goes against the fundamental principles of morality and ethics, as well as the laws of most societies. The primary role of laws and legal systems is to protect the safety, well-being, and rights of individuals within a society. Taking someone's life is considered a grave violation of these principles and results in significant harm to both the individual and society as a whole. Therefore, laws are in place to deter and prohibit the act of killing others, and individuals who commit such acts can face severe legal consequences.