The Apollo program (even according to NDT) was geopolitically motivated which isn’t necessarily the same thing as being militarily motivated.