He did it to enable the United Sates to pursue a "flexible response" defense policy
"flexible response" defense policy refers to the type of defense strategy that could be easily adjusted depending on the situation so united states could achieve the most benefit while avoiding unnecessary confrontation. This policy was the result of Kennedy's opposition stance toward Eisenhower's defense policy that is overly reliant on nuclear weapons.