This was the best opportunity to replace them. The surfaces needed to be cleared away so the anodes would make a clear contact with the metal of the ships hull. This would cancel currents, to reduce the engine and metals on the hull making charges that would increase the rate of erosion and growth of barnacles and even osmosis again.
The anodes are ideally located where these currents are mostly generated on the hull outside the vessel.