Why Do Bad Things Happen To Spiritual People?

We can be great meditators, compassionate or the most authentic beings and still bad things happen. Is this just a way for our higher selves to get us to use the tools we've learned and may have forgotten?