Why do We have Time Zones?

We have time zones due to the orbit of the sun. If we didn’t have time zones, it would be pitch black at noon on one side of the world, while the other side of the world would be a normal day.