It makes no sense at all, you should never paint machined mating surfaces. To prevent corrosion apply some copper grease to the spigot and mounting flange before fitting the wheel, do not paint it.
Painting the area between the mounting flange and the swept friction surface is ok, but inevitably it starts flaking off after a while.