CHT measures heat energy wasted during the power stroke, when the cylinder is under maximum stress from high internal pressures and temperatures.
EGT measures heat energy wasted during the exhaust stroke, when the cylinder is under relatively low stress.