The world is divided into time zones because when it is night in some parts of the world, it is day in the other parts.
Different places in the world have different times. This is why the world is divided into 24 different time zones. One for each hour of the day.
Time zones are used because the local time varies according to longitude.
Very large countries such as Russia or the USA, are divided into separate time zones as they are spread out across many time zones because of their size.