Why did the Pilgrims have an attitude of gratitude in the good and bad times?

Why did the Pilgrims have an attitude of gratitude in the good and bad times?