If the rotor is touching intermittently when spinning the wheel off the ground,
Then the rotor IS warped. Can't see any way around that.
If the rotor is touching intermittently while riding, with loaded rack.
Then Id suspect swaying load is twisting the rear dropouts a little.
Merely mounting the rack MIGHT change basic setup but really shouldnt have any dynamic element.