Before training, a model is a huge set of numbers called parameters, all set at random. Ask it anything and it guesses tokens at random too. Pure noise.
Pretraining fixes that with one exercise, repeated an enormous number of times. Take some real text. Hide the next token. Let the model guess. Then check.