If someone is taking this medication for the right reasons, the risks of taking it are far lower than those associated with obesity and diabetes.
Also, concern of losing muscle mass on GLP-1 agonists (and diets in general) is well known and typically explained by the responsible MD to the patient.