Traffic lights were not programmed to facilitate traffic, there is no statistical evidence to think otherwise. If you pay attention you will realize that the amount of green traffic lights is almost equal to the amount of non-green traffic lights, with this we can conclude that what happened was that the traffic lights turned green by chance and not by configuration.