“A risk” is not the same as a gamble. Of course there is risk. But companies don’t have trillion dollar valuations when there isn’t a clear path to profitability.
Every one of the few companies with that kind of valuation generates tens or hundreds of billions per year in free cash flow.