S&P is teasing new all-time highs — what is going on?

The S&P 500 index, which essentially tracks the top 500 companies based in the U.S., is set to hit all-time highs. Wait, what? How is it possible for the stock market to hit all-time highs during a pandemic where hundreds of thousands of people have sadly lost their lives? The markets are strange mystical beasts.