Being in favor of human freedom is find.
FIGHTING for the freedom of what was in 1961 was a majority of the population of the entire planet was not something that the US could do with our 6% of the population. Most of the world in 1961 was ruled by one sort of dictatorship or another.
In 1961, the US record for supporting freedom was pretty awful. The governments of Taiwan and Korea were brutal dictatorships. So was Portugal and Spain, our NATO allies, and their colonies. There was oppression in British and French colonies, and even Mexico, right on our border, had political prisoners. Most of the people JFK sent to recolonize Cuba in the Bay of Pigs fiasco were Batistianos and others who would have imposed another dictatorship.
JFK's statement was impractical and foolish. As I said, his main advantage was not being Nixon, who was even worse. Plus, he was better looking, and so was his wife.