What causes the outer layers of a forming red giant to cool down substantially?

Answer

The outer layers expand so far outward that they cool considerably

As the outer layers are pushed far away from the core's influence by intense shell fusion pressure, they expand rapidly, causing their surface temperature to drop. This cooling shifts the peak radiation toward longer wavelengths, making the star appear red.

What causes the outer layers of a forming red giant to cool down substantially?
astronomystarstellar evolutionmain-sequencered giant