Lower GDP generally also means infrastructure works are cheaper.
Also, the problem here mostly seems to be not money, but government. As the article states “Nobody here believes in the greater good […] There is no trust”. Short-term, how much more expensive would it be to get clean water from the rivers flowing into Jakarta, instead of from those illegal wells?