How come racecars have tape on their headlights?
The tape is to prevent broken pieces of glass/plastic falling on the track. Shards of glass on the track are a hazard because they can puncture a tire. The tape helps keep the glass together if it cracks due to flying debris or collision. A side benefit of course is it helps protect the glass, but only minimally depending on the thickness of the tape and is not the primary reason for usng the tape.