Hence people use zinc or (forbidden by RoHS?) cadmium.
The need is similar to batteries: a battery should consume the electrode only if current is drawn, not spontaneously. Hence zinc, manganese instead of potassium.
Yes, lithium makes good batteries now, but the electrolyte is not water - this was the difficult enabler.
Though, I'm less than convinced by anodic protection... At least in the very (very!) crude experiments I made, such a protection made little difference. Could this be one more case where a seducing theory is preferred over ugly facts?
O, and "iron" isn't available as a construction material. Steel is, in tens of thousands of different alloys, which behave in varied ways under corrosion - something a chemical potential won't tell you.
If you have a practical need, don't rely on sacrificial protection. Cover steel with an authentic layer (nickel, chromium, maybe zinc, not phosphate), made by a specialized company. This is nothing that can be predicted or re-invented in a day nor even a year.