The optical band gap is the threshold for photons to be absorbed, while the electrical band gap/transport gap is the threshold for creating an electron–hole pair that is not bound together.
The optical band gap is at a lower energy than the transport gap. For instance, the electrical band gap of intrinsic hydrogenated amorphous Silicon (i-a-Si:H) material is 1.8 eV, whereas, the optical band gap of the same material is ~1.72 eV.
Why so?