It's hard for people to get their head around this but you are exactly right. A company has value tied into their market value and accumulated assets even if they pledge to never pay dividends. Berkshire Hathaway is a notable example here. Stock trading is a way to make this value liquid before any actual dissolution event.