Firstly I think many people give to GiveWell recommended charities because they believe, rightly or wrongly, that a healthier population will spur economic growth, or political reform, or whatever else, which will improve the welfare of present and future generations of people in the country.
That argument, however, is vulnerable to the “suspicious convergence” objection.