Mastering is making sure all the separate tracks still run together into a cohesive whole. To my limited knowledge, mixing is sonically engineering the arranged recordings which comprise a song, whereas mastering is sonically engineering the mixed tracks which comprise a CD. Thus when an old album has generally detiorated in quality or was intrinsically infoerior to CD fidelity, the album is re-mastered.
"Please seek professional studio advice before acting on this information!"