Let I^´∈(0,n], p∈[1,∞), H∞I^´ denote the Hausdorff content on Rn, and Ap,I^´ be the capacitary Muckenhoupt weight class. We are interested in understanding the relationship between the capacitary Muckenhoupt weight class Ap,I^´ and BMO(Rn,H∞I^´) or BLO(Rn,H∞I^´) spaces for all dimension I^´∈(0,n], and further to comprehend the structure of these two spaces. Our main result shows that Ap,I^´ for p∈(1,∞) is equivalent to the BMO spaces, while A1,I^´ is equivalent to the BLO spaces, and consequently yields the factorization theorems for these BMO and BLO spaces via capacitary Hardy--Littlewood maximal operators, which essentially extend main results of Coifman and Rochberg in 1980 beyond measure theory. As applications, by establishing some capacitary weighted John--Nirenberg inequalities, we obtain the equivalence between capacitary weighted BMO or BLO spaces and BMO(Rn,H∞I^´) or BLO(Rn,H∞I^´) respectively. These results reveal deep connections between Ap,I^´ and BMO or BLO spaces with Hausdorff content, beyond the classical measure-theoretic settings. We develop some approaches in the proofs and using a new observation, that is, the additivity of measures and linearity of integrals are superfluous for the corresponding classical theory.