means that
the saying expresses extreme optimism: the belief that events form part of the best possible order. It may also be used ironically to criticise such optimism.
When extreme optimism., the saying “All is for the best in the best of all possible worlds” is appropriate.