Black mold grow by producing spores. These spores are present every where in the environment and can grow to molds when ever get suitable environment. Most suitable environment for these spores to grow in molds are moist areas. As toilet tank contain water and also moisture, so molds can grow on the top lids of the tanks. You should clean your toilet completely along with toilet tanks. You can use some detoxifying agents and make proper arrangements for ventilation.