"It's said that in the year 1796, the first U.S. dimes were produced for circulation. Hence, it would make sense for this phrase to originate sometime after." Read more here.
Today the phrase carries the meaning that something is cheap or without value if it can be lumped in with other similar or exactly-like things. It's more of an insult than anything.