FYI All questions

Why did towns once keep different times just a few miles apart?

Local noon followed the Sun, so every town set its own clock. Railways and telegraphs made that patchwork impractical and pushed countries toward standard time zones.