The main reason for this is to beat the heat, but it also allows time to sort out unexpected problems in daylight, such as discovering that the place you were going to stay in has no accommodation, or no restaurant, or both.
A further brisk walk may be required. Or you may just get lost for a while, which is best done before dark.