Bankruptcy allows you to catch up in missed house payments. In a Chapter 13 bankruptcy, you can propose a plan to catch up in missed payments over a 3-5 year period of time. Even though you owe this money, so long as you can resume current payments and pay a bit more towards your catch up payments over time, your lender cannot foreclose on your home.
Bankruptcy can help free up your budget so you can continue your house or rental payments. Depending on your financial circumstances, you can eliminate all or a portion of your unsecured debt so that you can focus your financial resources on keeping your house, rental or car or other secured items such as an RV, boat or trailer.