Why is there evil?

Why is there evil?

To purify the good (?)

(or perhaps, simply to bring us closer to Christ)