Oswald was openly Marxist and pro-Soviet, but he chose to leave the country with his family in 1962. I can't find a source that explains why.
hi! there's room for more on this, but fyi, /u/bettinafairchild went into this briefly in this post
What was Lee Harvey Oswald's motive for killing JFK?