This could be a general issue with SE Asia, but one thing that was a breath of fresh air for me as I departed Jakarta from my Bali trip last year was a thought that I no longer need to worry about quality of water being used to wash salad veggies or clean my toothbrush with.
Clean safe water from the sink was definitely not something I experienced in Bali in 2024 and I had the similar impression in Jakart
The price of clean water is at least an order of magnitude less than the price of electricity, but the cost of creating a water grid is probably more expensive than the electricity grid.
You will notice that many of the countries with unsafe tap water also have electricity reliability problems. If the economics of electricity don't work, then the economics of safe water don't work at all.
I don't think there's any conspiracy like this. It's just economic + (lack of) beauracracy. Installing and maintaining a functioning potable water supply across an entire country is expensive, but even harder is setting and maintaining standards.
I traveled often between Jakarta and Japan in 2018, 2019 and 2020. The real breath of fresh air for me was literally the fresh air back in Japan. After running around for a week through Jakarta, I would inevitably develop a deep cough and a clogged nose. That said, the people, the food, and as someone else pointed out the nightlife is amazing.
Somebody I know had asthma while she lived in Jakarta. It went away when she moved to Europe. I really liked Jakarta, but the air quality is one of the reasons why I won't go back again.
Clean safe water from the sink was definitely not something I experienced in Bali in 2024 and I had the similar impression in Jakart