Traditionally, the cab on a steam locomotive is at the rear, behind the boiler. This allows the fireman easy access to the coal in the tender and it is easy for the driver and fireman to communicate. They are also more enclosed and protected from the weather.