To be called an 'investment' there's gotta be a guarantee or some sort of legal binding between your spending and what you expect to get out of it.
Investment comes with the risk of the loss of the principal sum.
The part that you quoted was not the definition of 'investment' and I did not imply that investments are risk free.