Mixing is taking a collection of individual tracks, mixing them together and producing a finished mix (song, what have you) from them.
Mastering is taking a collection of finished mixes and creating a cohesive production master from them.
And yes, unfortunately, "making it loud" has seem to become part of that. It used to be "bringing it to an acceptable level" but that has changed pretty drastically over the last decade or so...