Lending directly to companies yields attractive returns, but there are reasons for that.