Everyone always claims self-defense. It's an irrelevant argument.
You always start off making just enough for your own situation, but economies of scale make it easy to run up production, and then you start specializing and exporting. And exporting the arms helps you finance your war, so it's a vicious cycle, and you just keep doubling-down.