particularly the liner, piston and piston ring, and avoid causing detonation, the involuntary and early combustion of the blend in the combustion chamber which can subsequently lead to engine seizure.
The cooling system has precisely this purpose: bring heat away from the hotter areas of the engine through the use of fluids (gases or liquids).
The hottest area of the engine is the combustion chamber, which reaches the maximum temperatures on the exhaust port side, where the burnt gases pass and the cool fresh blend practically never arrives.
Even the carter, despite not getting as hot, must often be partly cooled, because a volume of blend within the carter that has a lower temperature turns out to be denser, and therefore makes it possible to get more blend into the combustion chamber, and, consequently, better performance.