Dull and dirty headlights are a safety issue. This prevents the lights to do their job and help you see possible hazards in the road.
Here is an example of what headlight restoration can do. The light on the left is yellow and dull. You can hardly see both lights inside the housing. The light on the right has been restored and both lights are clearly visible.