It's been 10 years and I still have to watch my calories like a hawk if I want to stay below obese (I've quit trying for not being overweight, though that would be nice). I swim 1250 meters a day. Previously I've cycled 24 miles a day, or run 30-45 minutes a day, depending on what worked best with my work/home situation.
https://www.theguardian.com/lifeandstyle/2010/sep/19/exercis...
This is the key point. Eating healthy is absolutely a good idea and helps you perform better but most people eat a lot more than they think they do.
When I started exercising I lost 50 pounds over a year and a half or so without a single change to my (absolute garbage) diet.
Saying you can work out 5x week and eat anything is idiotic, but the key to weight loss is to track your calories, not to eat healthier. You should eat healthier for other reasons.
If you eat 3,500 calories of the above every day you are probably going to gain weight. If you eat 1,400 calories a day of fast food you probably won't, but it's hard to say that the latter is healthy.