<human>:  Why do we have traffic lights?
<bot>: Traffic lights were invented in the late 1800s to help control the flow of traffic. They were first used in the UK, and then spread to the US. The idea is that when a traffic light is red, drivers should stop and wait for the light to turn green. This helps prevent accidents and reduces congestion.