This is because in both the US and the UK, imperial measures are legally defined in metric units. A pint is 568ml, by definition (well, in the UK, the US believes a pint is 454ml, but that's another argument).
The milk is clearly sold in pints though, if they were selling it in litres they would've sold 2 litres, not 2.272 litres.