In Vedas and Puranas killing a bad person made you a God incarnate
What we have seen in mythological series that a God incarnate usually is born to kill the bad person. We have already seen how Shri Krishna killed Kansa Mama (his mother's brother) just because he was a bad person. In the same way Lord Rama killed Ravana because it was the ultimate goal of his life. They earned glory because of their killing acts because it signifies that bad always loses in the end.Nowadays, killing any bad person will land you jail because you have to prove that the person was actually bad. Nobody knows whether the person is bad or not, only evidences are needed to punish such people. In case the evidences are destroyed, the good person will land in jail for murder. If good always wins then why people good people are suffering today?