Coughing up black stuff?

Anyone have this happen after quitting? I know what it's from, but why did it only start happening after I stopped smoking pot?