Even if it was all metric, in embedded systems you often have to deal with the same measurements in different units, like angles in radians, degrees, centidegrees, length in mm, m, cm, due to various reasons (mostly historical, like integer math being faster than floating point math).
It is getting less frequent in modern code bases that target 32-bit MCUs with hardware-floating point support, but converting large codebases