How To Avoid Another Crisis Like Flint

Why in the richest country in the world were there still lead pipes delivering water to kids despite decades-old legislation against lead in water, air, and more starting in 1970? We cannot allow this to happen again.