While 2020 was a rough year for the economy as whole, it ended up being pretty good for the stock market.