This could be from not using a nonstick pan, not greasing it well enough, or not letting the cake cool enough before inverting it.