is it neccesary to paint under carpet?

if it is surface rust i would just touch up those areas with something similar.
..somewhere down the road someone will lift that carpet and see those original untouched floors.