Well, if the tax rate is lower than the cost of running a large organized crime organization and trafficking the drugs into the country, then the legal price may still be lower.
There's also the fact that buyers ALSO care about the risk. Many people will only purchase drugs legally, if given both options.