In everyday life
A bakery buys its flour instead of milling it. If the mill changes the blend without notice, the bread changes too. A bakery that orders one named blend, and tests a new blend before it switches, avoids that surprise.
One case
A school’s grade portal uses a free library to format dates. Its settings accept any newer version, and it keeps no lock fileA file that records the exact version of every library a project uses, so every install gets the same code.. The portal rebuilds every hour. At 16:50 on a Friday the library’s author publishes version 2.4.0, which has a bug. From the 17:00 build on, every page with a date shows an error, and nobody at the school changed a line.
Every case
Almost every program stands on code written by strangers: dozens or hundreds of libraries, plus the libraries those libraries use. Each one can change, break, be abandoned or carry a security hole. You get its work for free, and you also take on its risk. Teams control this risk in three ways: they record exact versions in a lock file, they update on purpose, and they read what changed.
The word
Engineers call this
Treat every library you add as code you now own. Pin exact versions, update on purpose, and add a library only when it saves more than it costs.