I am right with you, I've never understood what the actual purpose to owning shares is other than "their price goes up when the company is expected to do well" -- but what do you get for that price being higher?
Without dividends the whole idea of stocks makes no sense to me.
With dividends, I would think "I'll buy this stock for $100 with the expectation that I'll get a $10 dividend next year, a $12 dividend the year after that, etc etc, and eventually make my money back!"
In the case you buy a bunch of stocks and just hold onto them, they generate value by the company doing well. I could buy shares of a bunch of companies and wait 30 years, and if most of those companies are still doing well, I'll have made a profit from dividends, and I can then sell those to some wide-eyed young person who is hoping the company will continue to do well so they can get their payments for the next 30+ years. If the company instead does well for 20 years and then abruptly goes out of business, I still would've gotten lots of payouts from them, but now I can't sell those shares to someone who hopes for future payouts anymore.
But if there are no dividends, none of this makes any sense -- I'm buying the shares, making no money for the 30 years that I sit on them, then selling them to some wide-eyed younger person for a higher price who expects to also make no money for 30 years, but to be able to sell the shares to some new younger person? There's no endgame with a payout here, but there is an end where the company goes out of business. So what value was the share providing the owner over those 30 years??