Here is one scenario
Why is there typically a blue house during a recession? Well, the house typically changes from the president's party to the opposing party after midterms. So, if there's a Republican president, you can typically expect a Democratic House at some point during his presidency.
But wait! Why is there typically a Republican president during recessions? That's because people vote Republican when the economy's doing well. And since the market will eventually shift, this results in a situation where Republican Presidents preside over recessions.
The truth is that it is typically not the president's or Congress's fault if the economy does poorly, and also not their doing if the economy does well. The current situation is very strange where you can very directly link a stock market crash to the actions of the president.