It's clear that moisture had been wicking into these joists over time. If enough time passes, the joists will rot and/or mold and the structural integrity of the building will be compromised. The fix is more more costly and complicated at that point. Fixing the problem now is much better than waiting until you have real serious issues.