Required by law, largely so that other (oncoming) drivers can see the width of the vehicle. At one time it wasn't uncommon to only have one.I've got TWO headlights on the front of my car. I guess these mustn't be fit for purpose either.
And next time you are driving, you might notice how they are arranged to light up a narrow area directly in front - and naff all else.