We cannot see through fog because of scattering. As light travels through the air, it is subject to running into anything that's in its path. Atoms and molecules in the air, including anything carried in the air like dust or smoke, will scatter light.