Voltaire thought the earthquake had a very different lesson, namely that nature can be capricious and does not respect human life. If there were to be a happier, more prosperous, and more just world, it would have to be one created by human activity.
The earthquake in Candide is based on a real earthquake that leveled the city of Lisbon in 1755. Before writing Candide, Voltaire wrote a long poem about that event, which he interpreted as a sign of God's indifference or even cruelty toward humanity.