Drugs are actually very expensive relative to production costs because of the added risks. Marijuana, for example, is a very easy crop to grow. There isn't any reason it should cost more than any given spice per gram. However, since it was illegal, street vendors could charge significant markup because 'shoe-leather' cost is very high. Now that it's becoming legal, the gov is extracting the difference as taxes, keeping prices high for revenue.