They also made things complex by then picking a unit of mass that’s inconsistent with that: a gram isn’t the mass of 1m³ of water, but of 1/10⁶ m³ of water (a cubic meter is 10³ liters, and a liter of water weighs 10³ grams)
Centimeter-gram-second (https://en.wikipedia.org/wiki/Centimetre–gram–second_system_...) really is superior in that sense (but of course, that’s relative to the arbitrary choice of using water to convert between mass and volume, and from that, length)