It's all relative. All that matters is what we ourselves think, and if missing the train leads to a similar emotional state to starving that day, what's the difference? Yes, you can say that the difference is that one missed the train while the other starved, but like I said all that matters to us is how we feel about the situation, not what others think about it.
If we're thankful, who do we thank? Chance?
I don't see how missing a train would evoke the same emotional state as starving. How would a person feel if they had little food and were unable to feed their family - total despair, hopelessness, extreme sadness, fear, failure perhaps. So if a person felt these emotions for missing the train, I'd suggest they better seek professional help.
Regardless of your belief system, being thankful or grateful is a way of focussing on all the good things in your life rather than giving power to all the negative. It also about stopping to appreciate the little things, which can be more important in the grand scheme of things.
I've enjoyed people's comments on this thread, it reminds us to put things in perspective.