There is a good free e-book that can shed a bit of light on the mechanics of why markets can rally when the real economy seems to be in deep recession.
https://www.principles.com/big-debt-crises/
Basically when money printer goes brrr then prices of financial assets tend to go up. The unfair bit about this is that these kind of assets are mostly owned by the rich, which makes the wealth gap even bigger.