I'm not quite sure what you would expect. I understand that the correct answer is exactly 25.4mm, but what is 4 tenths of a mm? Not much. A mm is less than 1/16 inch, usual steel tolerance. It is close enough.
However, those tenths add up. Over the length of a foot, this is about a 5mm difference, about 3/16". It is up to us to convert precisely.
In API RP2a, have I not seen API use 50mm for 2 inches? In offshore construction, that is definitely close enough.