The stock price only reflects the supply and demand of a company’s stock. A lot of people want to have nvidias and Tesla stock, so their price is higher.
The problem is all those people writing financial pornography about the stock market. That can give you the impression that there is more to the stock price than that.