We don't always know why God allows bad things to happen to us (or to anyone else, for that matter). Someday, in heaven, we'll understand, but now we often don't. That should make us turn to God even more, because in hard times we need Him even more. The Bible speaks about "the mystery of iniquity," and that's what evil is: a mystery (see 2 Thessalonians 2:7, KJV).
But listen: God knows what you're going through -- and He also knows all about your doubts and your anger and disappointment. We seldom know what's going on in someone else's mind, but God knows everything, including our thoughts and our emotions. The Bible says, "Nothing in all creation is hidden from God's sight. Everything is uncovered and laid bare before the eyes of him to whom we must give account" (Hebrews 4:13).
Does this scare you? It shouldn't, because in spite of your hurts, God understands why you feel the way you do -- and He still loves you. This is why you can turn to Him and tell Him exactly how you feel -- and He won't reject you. Instead, He wants to forgive you and cleanse you, and He will, as you put your life into Christ's hands.
Don't go through life angry and without God. Instead, turn to Christ and discover the peace He alone can give us , even in the midst of life's worst storms.