The 2 sides were enemies long before they were allies in WWII. Relations had been bad since 1917 as Russia had become communist and the West had interfered to try and stop it. Russia had also not been allowed to join the League of Nations in the 1920s and things had got worse in the 1930s.