There is nothing specifically different about them, chemically. It is just prescription drugs are deemed too strong, too rare/expensive, or too ripe for abuse to simply be sitting out on counters available for anyone to buy and take in whatever quantities they want.
This distinction is a partially arbitrary one, determined by lawmakers, not doctors.
Latest Answers