Why A NAND gate is simply an AND gate followed by an inverter, so its symbol is the AND body, a flat back with a half-round or D-shaped front, plus a small bubble (circle) at the output that means inversion. Symbol 2 in Figure E6-3 has that D-shaped AND body with the inverting bubble, so it is the NAND. Its output is low only when all inputs are high, the exact complement of AND.
Watch out Symbol 1 is the same D-shaped body without the output bubble, which is a plain AND gate; the curved, shield-shaped bodies in the figure are the OR family.
Shape tells AND vs OR (D = AND, shield = OR); bubble on the output adds the N in NAND/NOR.