https://www.investopedia.com/investing/basics-of-municipal-bonds/
The city issues municipal bonds, which citizens (and sometimes non-citizens) buy. The bonds "mature" at an agreed on date and the value of the bond is owed back to the holder, with interest, on that day. Thus the debt is owed...