@Sweetbabyrays
I make this point on nearly every 'diet v exercise' thread!
It is far too simplistic to say that exercise doesn't contribute to weight loss.
Other posters have identified the link between exercising & diet change.
Additionally, it's demonstrated that your metabolic rate is affected by strenuous exercise so as well as he calories burned by exercise, you metabolise calories more efficiently post-exercise for a period of 13 hours after exercise.
However, one big mistake people make is over-estimating calories used up by exercising, compared with calorie intake via diet. Eg 'I did a HIIT session this morning, so I can have a pastry & latte now'. TG reality is that you'll use up something like 250 - 300 calories in a strenuous workout. A pastry will often be close to 400 calories on its own.
That's why diet is most significant - as you need to think what you consume overall.
However, especially for women, aerobic & strength training is so important for weight management, shape - especially in perimenopause/menopause - and strength / bone density which is vital for well-being into middle & old age.
It's a complete package - diet & exercise.