Actually in the days of steam trains, the Driver would often lean out of his cab on arrival at a terminus and exchange greetings with the passengers. Like it or not, the passengers do appreciate seeing the operating crew and their presence outside the flight deck is almost always seen as a plus. Pilots are part of the public face of the company and the job is not just about flying the aeroplane.