Nobody likes to hear it, because it's dull, but the reason you win or lose is darn near always the same - pitching.
I became an optimist when I discovered that I wasn't going to win any more games by being anything else.
You win pennants in the off season when you build your teams with trades and free agents.