It’s hard to imagine why Oswald might have found himself attracted to the political and ideological crusade of anti-Castro obsessives who, at the time of Kennedy’s death, were upset that Castro hadn’t yet met the same fate, particularly since Oswald’s loyalties seemed to be the opposite. Various sources report that Oswald had “actively advocated” in favor of Castro. So it would only make sense that Oswald hung out with Cuban dissidents to spy on them for the Castro government “
Alternatively, Oswald could always have been anti-Castro, and his pro-Castro activities were part of his cover