When you buy a municipal bond, you're lending money to someone who has to pay you back, and for many bonds the source of that repayment is a tax base.