Some purpose made bike headlights also have features not usually found on flashlights. Some headlights have side ports or lenses to increase visibility from the sides. That includes most Light & Motion Urban and similar L&M lights; many Serfas lights; and several generic headlights sold under many brands for $20 or less.
Some bike headlights -- not all, unfortunately -- include built-in hoods or lens/reflector designs that shape the beam with a cutoff similar to motor vehicle headlights to avoid blinding oncoming cyclists and pedestrians on narrow multi-use paths. Some Serfas and Nite Rider headlights have built in hoods that physically cut off part of the beam to minimize spill. I've homebrewed hoods for my Light & Motion Urban light to do the same thing more effectively. And Busch & Muller and a few other headlights have lenses and reflectors designed to mimic the beam patterns of motor vehicles -- defined cutoffs, plenty of light on the road with minimal spill.
Occasionally I prefer the broad circular beam of the unmodified Light & Motion Urban so I'll remove the homebrewed hood. On rural roads at night I want to see everything in case a deer or other critter darts out. I also want to see into the trees to watch for owls and hawks -- when startled some bird, even smaller mockingbirds and jays, will swoop down to defend their nests or go after anything they consider prey. This is so common with a hawk found in Texas and Oklahoma I've called 'em Great Speckled Hood Swoopers. There's a theory that the hawks are actually after any flying prey driven ahead of a speeding vehicle or bike, which our headlights help illuminate for the hawks.