Stars on main sequence have finite lifetime. Why ? -limited amount of fusion fuel.
What happens when fuel exhausted ? Fusion ceases, and the “Balancing Act” comes into play.
As core collapses, the kinetic energy of the collapse is converted into heat. This heat expands the outerlayers