You can either own part of the industry that produces stuff. Or you can own money with which you can place bids on the stuff the industry produces.
During a recession, the industry produces less. Now at first you might say: That is the answer. The industry produces less. So it has less value.
But if the amount of money is the same, the bids per piece of stuff should go up. Because there is the same amount of money bidding on fewer things. So the industry should still make the same amount of money.
Any easy answer to this, why stocks tank during recessions?