The parts didn't get as dry as you thought. When bagged, they had a moist environment to flash rust.
I usually air dry with a blow gun/compressor, or spray it with WD40. (Water Displacement formula 40).
Bagging them afterwards usually results in no rusting.
Silicone is a good spray to use to prevent rust later.