"X is good for you" is not typically a universal statement, but a probabilistic one. It doesn't have to be good for every single person in every single circumstance in order to be correct. It merely needs to be better for most people.
For example, not being overweight is good for you. The existence of people who survive famine because they started out obese doesn't disprove that.