Some of it was, but most of it wasn’t. There was a major naval arms race brewing between the US, UK, and Japan after World War I. Technology had made a lot of older battleships woefully obsolete, but all 3 sides were building a lot of battleships and making plans for a lot more, some of them huge monsters. The enormous cost of it was threatening the economies of all 3 powers. The battleships the US scrapped in 1922, with ages in parentheses:
Maine (20), Missouri (20), Virginia (17), Nebraska (17), Georgia (17), New Jersey (17), Rhode Island (17), Connecticut (17), Louisiana (17), Vermont (16), Kansas (16), Minnesota (16), New Hampshire (15), South Carolina (13), Michigan (13), Washington (0), South Dakota (0), Indiana (0), Montana (0), North Carolina (0), Iowa (0), Massachusetts (0), Lexington (0), Constitution (0), Constellation (0), Saratoga (0), Ranger (0), United States (0), Delaware (12), North Dakota (12).
Those with ages of 0 had not yet been completed, though construction had started. They would have been the 6 Lexington class battlecruisers (8x16in guns) and the 6 South Dakota class battleships (12x16in guns). Two of the Lexington class were allowed to be completed as aircraft carriers.