Lead is not attacked by pure water in the absence of air, but water is containing dissolved air has solvent action on lead due to the formation of lead hydroxide, a poisonous compound. This phenomenon is called Plumbo solvency.
2Pb+O2+2H2O⟶2Pb(OH)2LeadHydroxide