Diabetes, as its name implies, is that urine contains sugar, and the mechanism of action of urine and sweat is different. Just because urine contains sugar doesn't mean sweat also contains sugar.
The sweat of diabetics is salty, and the main component of sweat is salt, not because diabetics have high blood sugar, so they can't taste sweet.
In short, the urine of diabetic patients will contain sugar, but under normal circumstances, sweat will not contain sugar, and indeed, after the urine of diabetic patients is dried, the residual physics will attract ants because of sugar, and sweat will not attract ants because it does not contain sugar.