It’s how gauge theories work:
- fermions (charges) are in the fundamental representation of the gauge group, here SU(3) so 3 Colors
- bosons are in the adjoint représentation, for SU(3) that 8 dimensions