You know that there actually has to be a moment when the light changes yellow. The light may have been green for you at the time you drove across the intersection, but in the next second for someone else, it might've turned yellow. In the next few seconds you turn around and look, it probably already changed red. Not everyone stops for a red light, so this is how a few pedestrians get hit or are in danger of being hit.