There are other categories of real estate loans where the debt is against the property itself. The lender evaluates the property's income and expenses when underwriting the loan.

That sounds like buying a business that owns real estate as an asset.