It has been said that a god allows evil for reasons that are beyond human comprehension. Any god that causes, allows, and exploits the suffering of innocent people is not worthy of praise and worship. Some religious people say there is a devil that causes evil. But this is not a satisfactory answer. There are those who believe life was originally perfect, but the first humans somehow messed things up and humanity has suffered ever since.
Civilized countries have laws against such injustice.
Again, god is responsible for evil. However, there are always a few lucky people who are born healthy, never have a significant illness, never experience a natural disaster, never have a crime committed against them, and die peacefully in their sleep at a very old age. Many people believe a god created a heaven in which there is no evil. And, no earthly crime, no matter how terrible, warrants eternal punishment. God Creates Everything.