GLP1 drugs were developed to manage blood sugar levels in diabetics. Weight loss was a side effect.
One of the issues that came up when they started getting popular for weight loss was shortages causing issues for diabetics that had been relying on them.