The GDR was bankrupt because instead of reinstating the Nazis and pumping money into it like the US did in the western side, the USSR punished the Nazis and forced the country to pay a steep price for the war and all the people they killed. The West treated Germany as a showcase. The USSR didn't.