Symmetry and entropy of black hole horizons