Sugar content of food
That is actually correct - depending on the fruit you may be looking at different sugar component ratios (fructose/glucose), but ultimately, fruit is sweet because it contains sugar.
If you looking at dried fruit, the loss of water means a lot of concentrated sugar remains - and if you remember how sugar is made, it’s to be expected.