The tank or a fitting
Water at the top usually comes from a fitting or the relief valve, and those can be repaired. Water pooling under the tank, with rust at the base, usually means the tank itself has rusted through, and a tank leaking from the bottom has to be replaced.
The U.S. Department of Energy estimates the average lifetime of a storage water heater at about 15 years. A tank near that age that starts leaking is rarely worth repairing.
