Mortgage rates and lender profitability are driven more by rates on Mortgage Backed Securities (MBAs) which trade at a percentage spread above treasuries.
Several factors contribute to a rise in MBA and underlying Treasury rates, primarily increased risk and lower demand.
See the discussion posts in Mortgage Meltdown?, and alos follow the links to other threads/articles posted therein for added background.