I blame the propaganda the Russians poured into Oswald’s brain. My guess is he thought he’d get a heroes welcome back in Moscow.
He was disillusioned by his experience of Soviet communism, which is why after returning to the US he shifted his “unrequited love” to Cuba.