Each standardised on a different gallon. Prior to that, gallons depended on that you were measuring.
One, a beer gallon, the other a wine gallon. The US still also has 'dry gallons' for things like pints of blueberries.