The heating system is providing a constant rate of heating, and it relates to the amount of heat the system is gaining.
The cooling system is acting independently of the heating system, and relates to the amount of heat that the system is losing.
The net gain in temperature is equal to the amount of heat that the system has gained minus the amount of heat that the system has lost.
While the two systems do act relatively independently of each other, they both affect the same variable: temperature. So, since we're trying to find an expression for the change in temperature with respect to time, we have to take into account both the cooling and the heating, as they both affect the temperature.
As for why we add them, they both have the same units, and if we're trying to find the net change in temperature, we take the difference between the rate of heat gain and heat loss, or the 'sum' of the the gains and the losses.