Sugar is mainly used to make foods sweeter and look better, but its also used to make foods thicker.
Sugar is used in most foods.
Sugar is sometimes used as a preserver for foods as well. It makes foods like jams and cakes last longer
Even fruits have sugar in them, but that is not cane sugar, the sugar in fruits occours naturally.