The shift in preference that drives buying and selling can be influenced by a number of factors, including company-specific news or data, industry trends, economic conditions, and changing investor sentiment.
For example, sometimes the stock will go up if a company has a strong earnings report. But if the company operates in an area that investors believe has limited upside, like a maker of horse carriages at the dawn of the automotive age, a good quarterly report might not be enough to lift a stock price higher.