You may have seen supermarket shoppers reaching to the back of the cooler for what they perceive to be the "freshest" milk. You are used to checking perishable foods (milk, eggs, meat, bread, juices, and more) for the expiration dates or "Best if used by" dates stamped on them to make sure you are not buying items that will soon spoil.
Canned food items have expiration dates, too. But unlike perishable products, their expiration dates are years after the products were processed and preserved. The products inside cans often include preservatives that were added to maintain freshness, and those canned products were pasteurized and sealed against air, moisture, and microbial contamination.
Which raises the question: "Why can I open these canned products after the expiration date and they still look and taste good?" The difference between a product's expiration date and its actual shelf life may be different.