It depends on your time horizon. Over a period of say ten years, cash is unlikely to lose almost all of its value, whereas for stocks the likelihood can be higher. The stock market may crash (like it has in the past) at an inconvenient moment where you’ll then be happy to have some cash on hand.