Training error is a biased witness
A supervised model is fitted by minimising its error on the training examples (the previous lesson in this course sets this up). That makes training error the one number guaranteed to look good: the fitting procedure chose the parameters specifically to make it small.
The quantity you care about is different. Generalization error is the expected error on new examples drawn from the same process as the training data. You can never compute it exactly, because it is an average over data you do not have. You can only estimate it, and every estimate needs examples the model did not use for fitting.
Key idea: The gap between training error and generalization error is the model's optimism. A decision tree grown to full depth routinely scores 100% on its own training set. On the scikit-learn breast cancer dataset, one does exactly that, then scores 91.7% under five-fold cross-validation. Only the second number says anything about the next patient.

