drug stability

What's the deal with the "discard after one year" label on pill bottles? Is it based on real science? Or, is the FDA just trying to get you to send in "outdated" medicines, especially prescription opioids?