Horizon Thermodynamics from Einstein's Equation of State