There are only a couple of ways that you can lose CYA:

Water loss due to splash out or a leak

CYA degradation due to high chlorine or bacteria

Water loss is much more common reason than degradation but if you let the FC drop for a long period of time, that can cause bacteria to proliferate and then CYA degradation can happen.