That said, most loan originators sell the mortgage off. Many of those go to quasi governmental corporations that most people believe the US tax payers will bail out if necessary.
We have fixed-rate mortgages in Norway too, but the interest rate loss or gain is realized when you refinance. Meaning that if you refinance to a lower rate, you'll have to pay the loss taken by the bank, and if you refinance to a higher rate, the bank pays you the loss you take. If you pay off the loan faster than scheduled, the same rules apply. So the risk is taken entirely by the borrower.
There's not really a loss, since the terms of your old loan allowed the early repayment.
The mortgage is essentially a 30 year option, in those terms it becomes obvious why 30 year fixed mortgages wouldn't exist in an unsubsidized market.
They may have (potentially) had a few month's worth of being underwater but they were able to borrow at a lower rate also.
Further, there are several %age points of spread between what banks pay to borrow and what the mortgage rate is, further cushioning them. See the CIDOR here: http://www.tradingeconomics.com/canada/interbank-rate ... now compare with the mortgage rates a bank will charge.
EDIT: CIDOR under 1% but ratehub.ca says the best 5-year fixed rate you can get is... 2.42% .
It's really quite amazing if you think about it.
I know a guy who refinanced a few years back at 2.89%. That's insane as it's barely above inflation. He's basically borrowing money for free.
If inflation goes up to 5-7% over the coming years, his rate will stay at 2.89%, drastically decreasing the cost to pay it back.