The Statistical Mechanics of Black Hole Thermodynamics