Because of your bias against religious people, you make unwarranted interpretations of what their words mean. When someone thanks God for helping them after a race, they are not thanking God for preferring them over the other athletes. They are thanking God for inspiring them to be their best. Perhaps all of the athletes are equally inspired by God. But one of them is more talented than the others and wins the race. Then that athlete thanks God for inspiring them to realize their talent. I was not super religious when I was young and racing on the track. But I found, especially in the beginning when I didn't know what I could do out there, that I would pray to God for help when I was kicking on the last lap because I was dying and barely hanging on. I turned out to be the guy with the huge kick and ran a lot of people down, and was never outkicked on the track by anyone. I thanked God for the help after every race. Perhaps there wasn't any God there helping me, but the concept of God in my mind helped me focus on digging the maximum effort out of myself. I did a lot of things that I thought were impossible, simply because I asked God to help me find more inside of myself.
Regarding the truck accident, the father is thankful that his daughter was spared. He doesn't know why she was spared rather than the other person because that is "God's plan" which is a mystery to us. He just knows that he is fortunate enough to have received a gift from God. He's probably grieving for the person who died and almost certainly does not feel that God wasn't watching out for that person.
There is nothing illogical about any of this; it's just your own biased interpretation of what these people are actually saying. If you genuinely wanted to understand this, you could speak to a priest and you would probably be shocked to find out that priests are highly intelligent, educated in philosophy and logic, and quite interesting to talk to.