This is a pun. Esteem means confidence or respect. Some older trains use steam to function.  The engineer had a lot of esteem on the old trains because there was probably a lot of steam.
On the old trains the engineer had a lot of esteem .