As everyone else has said, the lines are there to focus and redirect the light ahead in the pattern the designer wants.
However, the clear example you gave is a HID (High intensity discharge) headlamp. They are basicaly a projector style bulb with a balast and do not require a focusing lense because the light already leaves the bulb in a beam. The light around it is to compensate for the lack of short range lighting by the bulb, something only frosted lenses gives you.
My family's 6.5L turbo diesel van has ridged lenses and standard bulbs, but the lenses aren't frosted, this is so that the light will go as far as possible ahead of the vehicle, the unfortunate side effect is that the light doesn't scatter as much close by because of the lack of frosting on the lenses. I'm not sure why the designers did it this way, but we found a work around.
The ridging on the lenses is to scatter the light ahead, the frosting is to scatter the light closer to the vehicle so you can see more around the sides. Without one the light would be in too wide a beam farther out, without the other it would be too focused on the longer range and woulden't light up the area close to the front of the vehicle.
For this reason we have fog lamps set up for driving at night on unlit roads, this way we can use high beams with the unfrosted lenses to see far and use the fog lamps to light up more around the sides of the road. It basicaly light up the entire road so we can see everything. The lights go lowbeams/off when there are oncoming cars though, it would be crazy to run all that lighting in another drivers eyes.