There are a number of reasons this can happen. The ratio of wet and dry ingredients may be off, or the leavening agents may be missing or mis-measured. This can also happen when the bread is undercooked, when the pan is overfilled, or when the oven is not hot enough.