The concept of standardized time zones didn’t come into being until the 19th Century. Before then, every town kept time based on its own local noon, when the sun was highest above that place. As the sun moves across the sky, so does “noon.”
In the mid-1800s, however, a certain new form of transportation made local time both impractical and dangerous. The video fills in the details.