The kinetic energy of a meteor decreases as it travels through the atmosphere.
Friction with molecules in the atmosphere causes the meteor to slow down and lose kinetic energy.
The lost kinetic energy is converted into heat, which causes the glow along the meteor’s trail.