Two entities make this type of swap or trade from a loan’s credit exposure as a derivative. Sometimes an underlying entity’s credit quality is the betting point used. Used as a hedge against credit exposure that a buyer can have, or used to obtain credit exposure for a seller.