I think you might misunderstand your analogy. If you owe the bank two billion dollars it's their problem because a missing 2 billion dollars is large enough to be painful for the bank.
In renewable energy it is actually common for the funding institutions to be paid a cut of the profits and to have no recourse to repossess assets. They take all the risk because they provide all the funding. The job of the actual developer is to provide a project worth funding.