Kennedy had made a mess in Cuba at the Bay of Pigs. He had to do something to look good. The Apollo program of going to the Moon was quite a goal,.