Fog is a useful effect for realistic large-scale scenes. It provides a good depth cue for distant objects.
It can also be used for "atmosphere".
It is sometimes used to hide the edges of a 3D world.
Example code: fog.c