When banks issue mortgages, they don't decrease a number in their own accounts to balance it. The act of creating the mortgage itself creates new money out of thin air, the act of repaying it destroys the money again. This is fractional reserve banking and is how most money is created. It's also why there's a relationship between interest rates and inflation: raise interest rates and borrowing becomes more expensive, so it happens less, so less money is created.