It’s perfectly reasonable to keep money you’ll need in the next 10 years in a slightly risky investment (like 60 bonds/40 stocks) even if you couldn’t afford to lose 100% of it.
It’s more sensible than keeping it in cash for that long. Money in risk-free liquid form is guaranteed to lose to inflation.