You can invest in real estate, the stock market, and a lot of other things.
“Investing” in the broadest sense just means using your money (read: cash) to buy assets that you think will go up in value. You can invest in real estate, the stock market, and a lot of other things.