rotted western red cedar
It's difficult to say whether the wood has rotted from contact with damp soil outside the tub, or from prolonged contact with water inside the tub, or both. If the inside surface is softer than the outside, then perhaps the tub has simply reached the end of its life. Suppliers' websites suggest that a western red cedar hot tub should last 15-20 years. If your tub has failed in a significantly shorter time, perhaps you should discuss this with the supplier in light of any warranty that was offered. We can say that contact with damp soil certainly wouldn't have helped.