Cash has become another four-letter word for some investors. Sure, it doesn't earn anything – which is only slightly less than the yield on high quality, short-term debt – but keeping some immediate liquidity has some real-world advantages. (See monthly index returns table below.)
Probably the most pragmatic reason one might need cash is in case of an unexpected expense. If something suddenly comes up, having some money available (perhaps by not reinvesting dividends or interest automatically) is far better than having to raise the money by selling an investment and incurring potential tax consequences.
There are also some strategic reasons to keep cash on the sidelines. Many investors, shaken to the core after the Global Financial Crisis, are still hesitant to invest in stocks. I have found that keeping some of the portfolio liquid psychologically enables them to have some equity exposure.