We usually view praying due to suffering that the suffering comes because of external situations and hence we have to pray. But this is not correct. The purpose of the suffering was that we should pray. By pouring our hearts to the Almighty, we become closer to Him and the suffering is a tool for our elevation.
Every person alive today derives much benefit from comforts and pleasures that in the past were not available. All of the latest inventions and findings of technology serve us to a remarkable degree. For all this we should be full of appreciation and gratitude.