They didn't.
Time zones are a modern construct made necessary by the speed of travel and the need for standardization of time in regions. Although people knew in antiquity that time was different in different parts of the globe, people kept local time up through the 19th century.
If you have other follow up questions, let me know.