Its called "hedging your bets".
Better to loan money now and help keep a profitable codeshare alive than it is to not loan money and have that revenue stream potentially dry up.
...and it should be obvious at this point that Bedford and Heller got some sort of benefit for RJET out of this transaction...