As in the case of many human biases, it's worth pushing back against this one, just for the sake of intellectual equipoise. But back in 1828, in a "Speech on Perfectability," John Stuart Mill argued a stronger case. In his view, this common focus on bad outcomes, negativity, and despair isn't just a judgement bias--it's also a sign of foolishness, lack of imagination, dullness, and even guilt. Mill pushes this line harder than I would. But the broader point is worth consideration.
Of course, "expecting to find mankind wiser and better than they are" is naive and foolish. But overcorrecting to believe in nothing but "knavery and folly" commit an error of judgement, too. And those who overcorrect most severely should not be presumed wiser because of their greater negativity and cynicism--just misguided in a different way and for different reasons. In some cases, maybe even many cases, a moderate degree of hope and positivity are more perceptive, more honest, and wiser than striking an attitude of poseur pessimism.
Here's part of what Mill had to say:
"I know that among all that claim of persons who consider themselves to be par excellence the wise and the practical, it is esteemed a proof of consummate judgement to despair of doing good. I know that it is thought essential to a man who has any knowledge of the world to have an extremely bad opinion of it, and that whenever there are two ways of explaining any fact, wise and practical people always take that way which attributes most folly or most immorality to the mass of mankind. ...
"[I]is it really a mark of wisdom to deride all grand schemes of human amelioration as visionary ? I can assure hon. gentlemen that, so far from being a proof of any wisdom, it is what any fool can do as well as themselves, and I believe it is the fools principally who have attached to that mode of proceeding the reputation of wisdom. For an I have observed that if there is a man in public or private life who is so impenetrably dull that reason and argument never make the slightest impression on him, the dull people immediately set him down as a man of excellent judgement and strong sense; as if because men of talent and genius are sometimes deficient in judgement it followed that it was only necessary to be without one spark of talent or genius in order to be a man of consummate judgement. In the same manner because people are sometimes deceived by rash hopes I think I have observed that not the man who hopes when others despair, but the man who despairs when others hope is admired by a large clan of persons as a sage, and wisdom is supposed to consist not in seeing further than other people, but in not seeing so far. ....
"I am persuaded that a vast majority of those who laugh at the hopes of those who think that man can be raised to any higher rank as a moral and intellectual being, do so from a principle very different from wisdom or knowledge of the world. I believe that the great majority of those who speak of perfectibility as a dream, do so because they feel that it is one which would afford them no pleasure if it were realized. I believe that they hold the progressiveness of the human mind to be chimerical because they are conscious that they themselves are doing nothing to forward it, and are anxious to believe that great work impossible in which, if it were possible, they know it would be their duty to assist. I believe that there is something else which powerfully helps many persons to the same conclusion -- consciousness that they do not wish to get rid of their own imperfections, and a consequent unwillingness to believe it practicable that others should throw off theirs. I believe that if persons ignorant of the world sometimes miscalculate from expecting to find mankind wiser and better than they are, those persons who most affect to know the world are incessantly miscalculating the opposite way, and confidently reckoning upon a greater degree of knavery and folly among mankind than really exists.Homage: I ran across a portion of the quotation from John Stuart Mill in Matt Ridley's article "Why Is it So Cool to be Gloomy?" which appeared in the Wall Street Journal on November 16, 2018. An ungated version is available here.