They’re just taking the same medication and using it at lower doses for weight loss instead of diabetes control.
And frankly, as a fat diabetic, I strongly suspect it’s doing the exact same thing in both cases, and the reason it works for diabetics is that it helps them lose weight.
It’s definitely on my list to discuss with my endocrinologist.