Free-body diagram of section of both the tank and water above pt A is shown. Notice that the weight of the water is supported by the water surface just below the section, not by the walls of the tank. In this vertical direction, the walls simply hold up the weight of the tank.