If investors expect a company to make a huge loss and it manages to make a dollar in profit, shares are likely to rise. An exaggeration, but still.