Just because something is healthy for you or contributes to good health, does it necessarily mean it's good for weight loss.
Weight loss is its own completely separate animal. You can either attack it directly and give up everything to lose weight at all costs.
Or you can focus on getting healthy as possible and letting weight loss be the side effect. But you can't do both!