So maybe the company has $100 in profit in 2024, and they have 5 shares, and they pay out all of their profit as $20 dividend per share. And in 2025 you expect them to make $200 in profit, with the same 5 shares, which is $40 per share.
Although that's a theoretical model, and there's many companies that don't pay dividends at all and still command mighty stock prices (e.g. TSLA) this is how real companies are actually valued -- on the expectation of future cash flows, maybe times some multiple.
The reason why revenue is more important than profits for the vast majority of technology / growth-stage companies is that most of these companies are focused on creating double-digit percent revenue growth every single year. Their profits will be 0 or negative because all of the money that they make from selling widgets is getting spent on marketing or hiring new engineers to build more widgets, or building a factory.
But after 5-10 years, this company will have "scaled over" its fixed expenses like rent, they will have huge revenues, they'll have serious market share, and then you can simply slow down / turn off the marketing and other SG&A expenses, and then suddenly you go from being a 0 or negative profit company to a multi-billion $ profit company.
But if you're too focused on clipping coupons and scrounging pennies as a startup founder, you aren't focused on the right aspect: revenue growth.