Market sets rate differential between “riskless” treasury bonds and “risky” mortgage bonds, based on risk expectations.
Supply and demand laws move the whole structure up or down. Falling demand for mortgage money – fewer bonds of all kinds being sold – interest rates on everything go down, from 10 year treasury to jumbo MBS. Rising demand for fixed-income securities (flight to safety) – same effect.