Interest rates on risk free cash investments have gone near zero. If one has a few hundred thousand dollars lying around, rental properties can be reasonable cash flow investments in the right markets. There are costs but there are also very considerable tax benefits (depreciation as well as out-of-pocket deductions) that go to the cash flow bottom line.
If you put a few hundred K into an investment account, you don't think "darn, it's going to take me X years to get my money back." Rather, you think of the account as a place to put your money instead of, say, under your mattress. It can be the same with rental real estate.
There is no guarantee of price appreciation for the real estate investment. The markets that offer good rental cash flow returns on investment because real estate prices have not appreciated the way they have in the "hot" markets may continue not to see those price escalations. But as long as you maintain the property, you have a pretty good idea that you have a stable cash flow investment that isn't going to vaporize the way a stock can.