When the homebuyer makes monthly mortgage payments to the lender,
the lender keeps a fee and
sends the rest of the payment to the investment bank.
The investment bank in turn takes a fee and passes what is left of the principal and interest payment along to the investors who hold the MBS.