Many people might call a shunt a resistor, but...I prefer to call it a conductor with a measured and specific amount of resistance.
Voltage will drop a little if it passes through any conductor, even wire. We think of resistors as having resistance/impedance, and we think of copper wire as having conductivity. However, those are their major characteristics. It is also true that resistors conduct electricity, and copper wire has resistance.
How can we measure current through a system? One way is to take a conductor with a measured and very specific amount of resistance, and then measure the voltage just before the shunt, and then just after the shunt. The difference between the two measurements is the voltage drop.
However, since the shunt is actually in the circuit, we don't want high resistance, that would just waste some of the current as heat. Therefore, the shunt has very low resistance.
Once you know how much voltage drop you are getting, the system voltage, and the precise resistance of the shunt...a computer can calculate how much current was passing through the shunt.
Maybe not a precise measurement of the current at that moment, but..."close enough" to be useful.