Most medication used to treat ADHD such as amphetamine/dextroamphetamine (Adderall) and methylphenidate (Ritalin) can make you less hungry and makes the body burn calories faster. Thus, leading to weight loss.
https://recoverypartnernetwork.com/drug/stimulants/adderall-addiction