It’s an historical artifact, as it was easier to manufacture a reference kilogram than a reference gram.
Considering today we set the kilogram by fixing the Planck constant and deriving it from there, we can just divide each side of the definition by 1000 and use that as a base unit. Using kg as the base unit is completely arbitrary, as we can derive each unit of weight directly from the meter and the second, not from the base unit.