Statements in v. 2-8 are opposites. Dead end street. Life is a gift. If we accept it as a gift, and thank God for it, we would have a better attitude toward the difficulties we encounter along the way. If we view life as a burden - we will miss the many gifts that come our way.
Outlook determines outcome.
When God gives us perspective on life we need, everything becomes meaningful. It's like all pieces of puzzle falling into place - then beauty emerges. When we see God's timing as being perfect and appropriate, life takes on a beauty. I see His purpose in tragedy, I see a reason in calamity. We are so short sighted compared to God.