Why does a flashlight make a beam of light?

A reflector and lens aim light into a narrow cone you can see when dust or fog scatters it.