The ground wire is for safety purposes; building codes typically require all metallic water features (i.e., scuppers) be grounded to the pool’s electrical grounding system. This reduces the risk of electrical shock and also reduces potential corrosion on exposed metals.