Tea gets cooled when sugar is added to it Why?

The heat contents of the tea gets shared with the sugar on adding sugar to it Due to which, the temperature of the tea decreases.