All significant weight loss includes some loss of muscle mass. Minimizing that is why every patient is advised and counseled to lift and work out, change their lifestyle and diet, and so on.
The pill alone isn’t magic. It just makes it possible to do the right things for people who found it impossible to do before.