These actions are an example of feedback.
Given that the room has reached the desired temperature, there is no more need for it to be heated, at least until the temperature drops a bit. This is why the thermostat sends feedback about this situation to the heater, which immediately switches off until it is needed again.