Using the incorrect mattress size for your bed frame or having an inadequate bed frame design are two common causes of the gap between your mattress and bed frame. Another factor that can contribute to it is a bed frame that is too old or damaged to hold the mattress adequately.