In Flint it was mostly because of lead poisoning, that was caused by the city pumping chemicals in the pipes that removed the protective layer. Another source was contaminated water from the flint river.
[1]: https://abcnews.go.com/US/water-crisis-plagues-flint-residen...