If YOU had the power and knowledge of a god, YOU would certainly eliminate the evils of this world. No loving human parent would allow the evil this god allows. It may be said that hospitals are monuments to god's incompetence, indifference, or cruelty. 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.