This is used to make variables and units appear in roman (non-italic) text.
For example, the unit kilogram should be rendered as rather than .
The former, the correct representation, is rendered by \mathrm{kg}
, while the latter, the incorrect representation, is rendered by simply kg
.