Right now, though, more comes in than goes out, and the excess is invested in government bonds.
Government bonds are funded with the excess that is coming in.
It took a lot of engineering to create a city with a harbor that size.