Current cannot be measured directly by analog to digital converters, as they only measure voltage. Therefore, a resistor in the path of the adc is needed to convert the current to a measurable quantity.
High precision resistors, or electrical shunts, are employed so that current is accurately and faithfully reproduced by the measuring circuitry.