It's essentially the nlp equivalent transfer learning from the computer vision side.
This LSTM simply learned to predict the data. It didn't learn some other supervised task.
This would be more similar to autoencoder pretraining, but even that is not quite the same.