This is how a lot of the private equity industry is funded. Shareholders are "de-risked" taking the proceeds of a refinance out of the business upfront. The financier offers the upfront loan in return for a consistent stream of their cash flow (the interest and capital on the loan, and sometimes not even the capital). These businesses tend to have very steady cash flow generation.