Why does evil exist?
Evil exists as a concept hand-in-hand with "good".
If we didn't have good, we wouldn't have evil. It's this contrast that gives this word its definition to begin with.
God allowed for both these possibilities on this earth because it's part of our test and our free will.
The askers of this question expect for God to save a baby when it's about to die, or to interfere with fate when a person is about to be stabbed. The truth is, evil in all its forms ranging from disease or disaster, to wrongdoing by our own hands towards each other, are part of there being free will and as a test for the afflicted, and those around them.
If a disaster strikes, will you be of the people who go and offer their time and money in support of those in need? If you get sick, will you be patient and thank God for everything else he's given you and understand this is your fate as part of your test in this life?
Treating this life as a lasting home will only bring a person pain. Nothing in here remains, not money or fortune or health or beauty or happiness. Therefore, basing your happiness and satisfaction on any of these parameters will only bring you sorrow if you lack them or inevitably lose them. This is why belief in such a test is relieving, and why believers tend to feel more content and pleased with their lives, regardless of its luxury.
A perfect life with no pain, sadness, suffering, or injustice, was promised to be the reward for those who proved they deserved it in this life. That's what the promise of the afterlife is about.