There are two main reasons for this: the oven door has been opened before the loaf has set (do not open for the first 45 minutes) or the cake didn't go in the oven as soon as the batter was mixed.