Why does a condo association need directors’ and officers’ insurance?

Directors and officers of a condo association ensure the smooth running of their neighborhood. But who covers them if something goes wrong?