I'm not as familiar with how mortgage markets work in other countries, but at least in the US fixed rate mortgages are almost always risk balanced against fixed rate investmentsor wrapped up in securities that move risk off the banks' books.
A bank would indeed be crazy to hold onto fixed rate 30-year loans with interest rates at near zero.