From autoencoders to latent variables
The topic Autoencoders ended with a model that compresses well but cannot generate. It has no distribution over codes, so there is nothing to draw a new code from. And its decoder was trained only at the codes of training images, so a code from anywhere else may decode to a smear.
The way out, as that topic suggested, is to make the distribution of codes part of the model. Choose a distribution over codes before training, let the decoder define the probability of an image given its code, and train both so that the codes stay where that distribution expects them. A model built this way is a latent-variable model. Its language — joint, marginal and conditional distributions — comes first.