That's why Graham called the market a voting machine. On a second-by-second basis, the stock's price reflects what current buyers are willing to pay and what current sellers are willing to take.
A stock's price movement indicates what investors feel a company is worth—but how do they determine what it's worth? One factor, certainly, is its current earnings: how much profit it makes.