When the fluorescent bulb in a streetlight gets old, it overheats and trips a safety switch. When it cools off, it turns itself back on again. Some streetlights turn on and off by themselves every few minutes. Also, some towns install timers which cause all streetlights to turn off randomly every few minutes. This saves energy, but since the timers are not synchronized, some lights stay on while others are off.
Beware, it's easy to fool yourself into thinking that you have a mysterious effect on streetlights. If you see a streetlight turn on or off, that's not unusual. It happens all the time. It's only unusual if whole chains of street lights turn off in sequence as you pass, or if you see the streetlights only turn off but never see an equal number turn back on. It's also unusual if the streetlights often turn off NOT as you approach or leave, but instead they only turn off while you are passing directly underneath (ie. when you are closest to them.)