from an engineering standpoint. each compliments(or hinders) the other.
record it well----- it can be easier to mix.
mix it well----it can be easier to master.
if the recording sucks...the mix engineer may/will have a hard time correcting it in the mix.
If the mix sucks...the mastering engineer might get pissed and return your masters to you to be remixed.

Because most can't perform miracles.
but no one can really point of every little detail of each part unless they were there to hear(see) what the "before" version sound
ed like. You can make an educated guess.