When news about a company or the economy arrives, traders and automated trading systems race to buy or sell, and the price moves to a new level within milliseconds to minutes. Much of this speed comes from high-frequency algorithms that read news feeds and earnings releases by machine and place orders faster than a person could.
The price changes because it is set by the most recent trade, and each new order pushes it toward whatever buyers or sellers now think the shares are worth. Prices often overshoot or fluctuate briefly before settling, since the first reactions are sometimes based on incomplete information.