In LaTeX, \mathrm{kg} is rendered as inside math mode. Use it to display text upright (not italic) inside math mode.