People just configured their own clocks based on when the sun would rise and set, and it could be different from one house to another in the same town. It was fine because people generally lived in one place, and the country wasn't completely interconnected. Timezones started when the railroad industry expanded in the late 1800s because the arrival and departure times of trains needed to be regulated and people needed to know when that time was.