Why is zinc used to coat Iron and not the other way around?

Why is Iron not recommended in construction of steam pipes?