An expansion tank gives thermal expansion somewhere to go. Without one on a closed system, the pressure from heating water has only one outlet: the relief valve.
When it is needed
A closed system needs it — where a check valve, a pressure-reducing valve or a backflow preventer stops water returning to the main. A plain open connection can often absorb the expansion in the supply, so the answer depends on the plumbing rather than on the heater.
How it fails
A bladder separates the air charge from the water. When the bladder fails, the tank fills with water, and the air charge that absorbed the expansion is gone. The symptoms are a relief valve that weeps as the heater runs, a tank that is heavy or wet at the connection, and a pressure reading that climbs with temperature.
What the visit checks
The system pressure cold and hot, the expansion tank's charge and bladder, the relief valve and its discharge, the reducing valve where fitted, and the mounting. The tank is replaced or added with the relief valve checked in the same visit, because the two are parts of one system.
The city and the places
The work is plumbing under Anaheim's permit where it applies, with the final inspection checking the valve discharge and the strapping. Mounting space differs by place — a West Anaheim garage, an Anaheim Colony basement, a Platinum Triangle closet, a Resort District mechanical room, a Summit utility space.