So are Berkshire Hathaway shares not investments, because you need to sell them to end up with money? What about a savings account with compound interest, or an ETF with automatic dividend reinvestment - do they not count as investments either, because you have to do something with them to get money out?
Don't forget that investing in the stock market is still something of a gamble, because the return for everyone is not guaranteed to be greater than zero - a company can go bust leaving the shareholders with nothing.