Cleaning your toilet tank often helps to prevent mold, rust, and mildew from developing that can discolor your tank's interior and lead to metal corrosion overtime from some of the tank's parts.
Moldy bathroom caulking can be such an eyesore, and if you've tried everything possible, this simple fix might be the best solution to this problem.