Home assistant unit of measurement

Out of the blue, HA changed the unit of measurement regarding volumes from liters to gallons.
I tried to changed it back by changing the setting in System to gallons, set it and afterwards I changed it back to the metric system.
It looked good for one day and then it went to gallons instead. The other units, Celsius and distance, remained as they where.
Why is this happening?