Well, duh.
The point is that a 2 digit year makes the format ambiguous.
Knowing what the year is, is not the point.
But if you can't determine the format of the date unambiguously, you can't know which is the day and which is the month reliably.
Since the year is 2018, then assuming that you know the can of food was bought this year, then you can probably determine that 18 is the year part. However, canned food can have a very long life indeed.
For the cost of just putting an extra couple of digits for the year, that ambiguity is reduced immensely.