History: Castro was supported by the Eisenhower State Department and the reigning despot, Fulgencio Batista, was forced to flee. The US welcomed Castro as a nationalist, which he posed as one, hiding his communism until he had consolidated power.
Our initial support of Castro predated and had nothing to do with Kennedy.