This will give you enough time to react if the car in front of you stops suddenly. It will also help you avoid tailgating, which is a major cause of accidents.
In addition, looking ahead far enough will help you anticipate traffic conditions and make decisions accordingly. For example, if you see that there is a red light up ahead, you can start slowing down early. This will help you avoid having to brake suddenly, which can lead to an accident.