Final answer:
The star's core gets hotter as it shrinks due to compression and an increase in kinetic energy.
Step-by-step explanation:
The star's core gets hotter as it shrinks because of the compression caused by gravitational forces. As the core shrinks, the particles in the core become more closely packed together, resulting in an increase in temperature due to the increase in kinetic energy. This increase in temperature can trigger fusion reactions and the release of energy.