The GDR was a showcase state that, much like the DPRK, being on the periphery of the communist block, was propped up by USSR so that direct comparisons with its capitalist neighbor wouldn't be so unflattering. One of the most important forms of assistance the GDR and other satellites received was cheap energy. In the case of the GDR, through the Friendship Pipeline. One only need look at the DPRK to see how vital this assistance was; it was only after the USSR collapsed and Russia turned off the spigot that North Korea started regularly suffering famines: https://en.wikipedia.org/wiki/1990s_North_Korean_famine
And yet even with the high (in comparison to other communist states) quality of life people in the GDR enjoyed, people still risked life and limb to escape. You could leave Brazil under its various juntas, Chile under Pinochet, Portugal under Salazar, and Spain under Franco, yet the only option for citizens of the GDR and other communist states (in some cases, still today, e.g., Cuba and the DPRK) was escape and defection.