I disagree — enacting a policy people like and find useful is inherently good publicity.
If your city mayors’ initiatives improve your local library, this will make people who visit the library like the mayor more. This doesn’t make improving the library immoral or unethical.