Carryover cooking is when food keeps cooking after it is taken off the heat source. Its internal temperature continues to rise (America's Test Kitchen and Wikipedia).
It happens because the outside of the food is hotter than the inside. That heat keeps moving inward until the temperature evens out through the food (America's Test Kitchen and The Science of Heat). The transfer slows and stops as the inside and outside temperatures get close to each other (America's Test Kitchen).





