I had a VW Beetle many years ago, my first car, and it developed a corroded disc. The corrosion was caused by a faulty caliper, one pad was not being properly pushed on to the disc (fixed not floating calpier). This was because the car had been left standing for some time, a rust ring had formed between the piston and caliper. Due to the rust ring the pad/piston wasn't retracting properly causing the pad to wear away very quickly until it no longer was making contact with the disc. After the pad wore away was when the corrosion on the disc started to build up, i.e. it wasn't being scrubbed off by the friction every time I braked.
So I would expect if I was driving my car regularly and corrosion started to build up on the disc this would indicate the pad is not making contact with the disc, no friction scrubbing, and therefore it would more likely be a caliper fault and require the caliper, disc and pads to be replaced - typically as a pair across the axle to keep the braking effect balanced - as was required with my VW.