Lead pipes are fine when the ph is the right level to create a barrier "passivization" layer within the pipe between the lead and the water. Rome's water's ph was naturally ok.
The issue with Flint was that they increased the acidity of the water by changing the water source, which removed that barrier.