I can't see how any new risk is added in a fixed rate. In fact I can't see how a non fixed rate would really be good for anybody, and would keep the risk fluctuating for all parties involved.
If you have an adjustable-rate mortgage, you bear the interest rate risk.
This is incorrect. It is very common for investors (yes, including commercial banks) to frame risk in the way I described. This link to investopedia will expound upon my admittedly short description of interest rate risk [1]. Another obvious risk in this context is prepayment risk [2]. Note that both of these risk models are not about whether or not the bank is losing the money used to pay for the home, but are about factors that could affect the return on investment. You can find even more examples of risk models exactly like this on investopedia.
[1] https://www.investopedia.com/terms/i/interestraterisk.asp [2] https://www.investopedia.com/terms/p/prepaymentrisk.asp
After all, even though their calculations were counting on the profits of that money, having it back now means they can loan it out again, and possibly will receive a lager return if interest rates have risen.
For instance, my mortgage is at 2.49%. Right now interest rates are at 3.04%, so if I paid my mortgage off today the bank should be able to find a borrower who would pay over 20% more for the same money, right?
I get that this could go in the opposite direction, though, so I know it's not a perfect answer.
Here's some more detail on this: https://www.netinterest.co/p/financing-the-american-home
Strange, because I have a fixed term for the entire length of my mortgage and I'm not living in those countries. Admittedly it's for a length of time shorter than 30 years, but even at that timeframe it would be possible to get one.
There is however one additional modifier in the statement of the article: "fully prepayable", that may not exist anywhere outside of Denmark and the USA (but still, your source doesn't really explain where it got it's list of countries that have it, so I have no way to know it's correctness).