One buys a stock on the premise that someone else will pay more for it in the future.
Most of the time the future is years down the road, because you made a good bet on what business would be profitable. Sometimes the future is the following Tuesday because someone got out over their skis and _needs_ your stock now.