  Near the event horizon of a black hole, the effective theory is two
dimensional conformal theory. Here we show that the holographic modes
characterising this underlying conformal symmetry and the basic definition of
entropy $S$ in statistical mechanics lead the equipartition law of energy. We
also show that $S$ is proportional to the gravity action which suggests the
emergent nature of gravity. This is further bolstered by expressing the
generalised Smarr formula as a thermodynamic relation, $S = E/ 2T$, where $T$
is the Hawking temperature and $E$ is shown to be the Komar energy.
