Why is a cooling sysyem necessary in a nuclear reactor?

The nuclear reactor emits a lot of heat energy.