A mattress bag is used to protect a mattress from dust, dirt, moisture, and other damage during moving or storage. It is also used to make a mattress easier to move, as it can be rolled up or folded and then secured with straps.