Although this may appear as an "inconsistency" in the SI system the kilogram is the base unit for mass. The gram is a derived unit.