Because the world might be going to hell in handbasket, or it might not. And either way, there's essentially nothing that that you or I can (reasonably) expect to do about it. Or not quite nothing, but probabilistically speaking, epsilon close to nothing.
However to the extent that any of us might, just might, be able to help steer this civilization out of the death spiral it seems currently locked into -- such a correction will, almost by definition, require a very strong degree of (the right kind of) optimism. If we just say "F it", and give into pessimism -- we won't have any chance at all.
Therefore, from rationalist first principles -- we might as well go with optimism. In fact if the current situation we're in can be thought of as an evolutionary test -- then it is one that is selecting for 3 traits: (1) intelligence, (2) ability to cooperate, and (3) optimism (again, of a certain "right kind" that I don't have time to go into at present).
I realize this argument sounds a bit pat (like Anselm's argument for the existence of God), but I do think there's a lot more substance to it.