Mastering is the last process in the music production chain. your goal is to prepare the song to sound as good as possible on any device
A good mastering process will bring out the most important aspects of your mix and eventually solve loudness problems.
So is the last creative moment to enhance your song.