In mixed models, if use MLE, we have to assume that fixed effects are known, rather than being estimated from the data. If we use REML (residual maximum likelihood) it will automatically adjust for the degree of freedom corresponding to estimated fixed effects. This is the key difference between MLE and REML in mixed models, however, the difference will be very small when the sample size is big.