There are also certain types of medications, like insulin and anticonvulsants, that shouldn't be used past the expiration date. Your doctor and/or pharmacist can assist you in learning which expiration dates should be more closely observed than others.
But, like, why is there an expiration date on my shampoo?
Cosmetic products like shampoo, acne treatments, sunscreen and even soap lose effectiveness over time due to exposure to heat and moisture. In the case of things like shampoo and soap, the result won't be much to worry about -- eh, so your hair doesn't get as clean as you might like, big deal. But if a product like sunscreen doesn't work, then you're in trouble in the form of a wicked sunburn.