I learned about this concept in college macroeconomics. I asked this exact question and the TA said “yeah I guess repaying debt is like destroying money” as if they had never thought of that before. The idea of lending money increasing the money supply is definitionally true.