I think the electrician that installed this main panel ground (grounding electrode) to a plastic water line may have missed the class on “plastic does not conduct electrical current”.

[improper main panel ground]

Photo by Dennis Robitaille, of Able Home Inspection