There is a vestibule at the end of each coach. This connects the coaches together, providing passengers a safe passage to go between coaches, and a place to board and leave the train.
The vestibule is a very noisy place, and it is not air-conditioned.