It is caused by refraction (bending) of light from the sky through the hot (and less dense) layers of air nearest the ground.
Dagidiay adda pay laeng ditoy daga a matay iti panawentayo ket dagus a mapagungar tapno agbiag idiay langit.