These men are seated in the upper story of a teahouse.  Such establishments provided a gathering place where friends could take refreshments and be entertained, away from the hustle and bustle of the city streets.  The second floor was likely cooler, open to available breezes, provided better views, and was significantly quieter because of its distance from the commercial activities below.