Because if they were taxed, municipalities would see their interest rates skyrocket. Having municipal bonds be free of taxation benefits the investor (they don't pay income tax), the municipality (more people will be interested in the bonds, hence lower interest rates), and the citizens of the municipality (their tax rates won't go up as quickly).