It's not the only drug that suppresses appetite, but GLP-1 agonists (Ozempic, Zepbound, etc) appear to work for a larger percentage of the population, and significantly outperform previous appetite suppressants.
There's also findings that suggest that it goes beyond simply suppressing appetite, but also manipulates the "reward" center in the brain. Individuals who take it to lose weight find that they have reduced desire to drink or smoke, suggesting it's less that they struggle with appetite and more the medicine helps overcome addictive behavior.