Stocks are valuable because they're a claim on a stream of future dividends. Bitcoins, in contrast produce no dividends and aren't intrinsically useful. So the question is why are they valuable at all?
That's not the reason stocks have value. For one thing, many stocks don't return dividends. They are valuable because legally a stock owner owns a piece of the company, therefore a piece of its assets (and future revenus which will help grow its future assets.)
Secondly, Bitcoin's decentralized nature, unfrozable assets, etc, is inherently valuable because unmatched by any other system.