
Diet is a big part but for most people losing weight they'd have to go on a pretty restrictive diet to lose weight in a reasonable amount of time which isn't as sustainable/productive, and depending on the person can lead to other health problems by not getting enough nutrients. Working out along side it gives much more leeway and makes you a lot healthier, everyone should be working out and moving their body regardless of weight loss or not