On the nature of black hole entropy