Expressing the metric as $g_{\mu \nu} = \eta_{\mu \nu} + h_{\mu \nu}$, assuming $h_{\mu \nu} \ll 1$ we can write the Einstein Hilbert action to leading order in $h_{\mu \nu}$ and quantize the linearized Einstein Hilbert action to construct the graviton field. Gravitons are spin 2 particles, which is easiest to see by noting that $h_{\mu \nu}$ has two indices. These enjoy a "gauge symmetry" corresponding to diffeomorphisms.
However, classically, gravity can be understood to be largely analogous to a gauge theory. The Christoffel symbol $\Gamma^{\alpha}_{\beta \mu}$ takes the place of $A^a_\mu T^a$ as the gauge field.
Note that $\Gamma^{\alpha}_{\beta \mu}$ has three indices, however the $\alpha,\beta$ indices can be understood as a matrix, much like the Lie algebra elements $T^a$ in Yang Mills theory.
If we quantize this field instead shouldn't we not be able to realize gravity as a theory mediated by spin 1 gauge particles?
(This should be especially true if we take the action to be the Kretschmann scalar, which seems to be equivalent to the Yang Mills Lagrangian.
$$ \mathrm{Tr}(F_{\mu \nu} F^{\mu \nu}) \leftrightarrow R^a_{b \mu \nu} {R^b_{a}}^{\mu \nu} $$
However, this would obviously give a different theory than Einstein gravity.)