Perpetual optimism is a superpower.
Think of all the bad things that have happened in your life. Did they ultimately lead to good things?
Maybe not. But more often than not, you can find the silver lining.
Even looking at the big picture- world history- you can find plenty of times that bad shit had a good (ultimate) outcome.