I’ve watched my son do a few Half Ironman Triathlons (swim 1 mile, bike 50 miles, run 13 miles). There are overweight participants. I don’t know how anyone can train for a triathlon and not lose weight.
You can’t out train a bad diet.
Tons of carbs, too many calories, high inflammation & cortisol, etc...