If it was as simple as you're painting it then it wouldn't be a problem. The fact that it is a problem should indicate to you that there are factors you might not be considering.
For example, the logistics to provide plumbing to developing nations are extremely difficult because of the instability of these regions as well as the lack of cooperation from developed nations to precisely help in these much needed regards. A lot of the help these places get come in the form of philanthropic pursuit or misguided help that end up either not helping or sometimes worsening the situation.
Not only that, but there are many interests at play that also get in the way of these places developing. For many powerful actors in these countries the status quo is good enough and any form of development actually threatens their position. And yes, sadly, this applies to plumbing as well!
It's very true that we know how to do plumbing, in the technical sense, but in reality we don't know how to do plumbing in these regions because our technical knowledge is not applicable given the socio-political situation. So this does require an interdisciplinary approach, one that involves sociology, psychology, economics, politics, etc.