Appending Dense layer to Pretrained Model

Why do we use :

model = Model( pre_trained_model.input , x )

and not

model = Model( pre_trained_model , x )

why do we need to specifically mention the input of the pretrained while appending instead of just using the model directly ?

Please see this link