Because in order to generate the correct target sequence, the decoder solely depends only on the last hidden state of the encoder.
the network needs to compress all of the information contained in the source sequence into a single fixed-length vector.