Because "the markets" meaning the stock markets is the owners and managers of capital, the wealthy adn the powerful. They did well, large Internet conmerce companies were positioned to take advantage of the pandemic. The markets don't care if lots of people lost their jobs or had an atrocious year. It's all about the quarterly profits.
And the stimulus bill was a huge boon to business. Most of it went to business.