Earnings results are dismal, but the market is still rallying. Here’s why