This isn't about morality. Quitting any addiction is objectively difficult and most people need several attempts before it sticks. I have no illusion that you can "just" lose weight.
Making people chemically dependent on a drug to keep themselves healthy is optimising for the wrong solution. It's quick and easy but it mostly serves to keep insurance and drug company profits up.
I certainly believe that these drugs can be useful as a means of gaining an intermediate result (which can significantly reduce the immediate risk of many diseases) during treatment, but that's not how people treat them; people treat them as a magical fix for obesity and that's simply not healthy.