One of the priests I worked with when I was first ordained was a genial Irishman who seemed to have a saying for every occasion or circumstance. When an unlikely couple presented themselves for marriage he would say: "There's no pot so beaten out of shape that you can't find a lid for it." When someone's clothing choice was a bit questionable or problematic he would say: "They must have got dressed in the dark this morning." My favorite saying, though, was when he was confronted with a situation that defied explanation or understanding. In those cases he would simply say: "Sometimes the Lord uses poor sense." This was his way of acknowledging that sometimes things just happen that are beyond our reason and over which we don’t have any control.
Now to be honest, I have used this saying on more than a few occasions. While it is nice when there is a logical explanation for the things that happen in our lives, this certainly is always or often the case. Now sometimes those unexpected or unexplainable things that happen are good e.g. winning the lottery. I suspect, though, that more often this is not the case, e.g. we face a sudden illness, or someone we love dies unexpectedly. At these times, while we can search for meaning or understanding, these often prove elusive.
The above is not a new problem. In the Old Testament the Book of Job dealt with the question of why bad things sometimes happened to good people. For Job's friends the answer was simple. Job must have done something wrong or bad to deserve all the terrible things that were happening to him. Job, though, knew that wasn't true. He knew he had tried to live a good life and that he didn't "deserve" what was happening to him. The resolution occurs in the final chapters of the Book of Job. God speaks and in essence says: I'm God; you're not. My ways are not your ways.
Now I realize that for some people this is not a very satisfying response. For me, though, it helps me remember that God is in charge, and that ultimately the ways and work of God are beyond my ability to comprehend or explain. It also invites me to believe that God knows what God is doing, and that I need to learn to trust that the God who loved me into being isn't capricious or aloof in continuing to love and care for me.
As there have been in the past, so there were will continue to be times in the future when things happen that cause us pain or anxiety, and over which we have no control. At those times we need to continue to pray. and to remember that it's okay to say: "Sometimes the Lord uses poor sense."