Welcome to the forum Alicia! Fridging works a number of ways. One way is it decreases an axolotls metabolism which can slow down the rate at which fungus or an infection spreads. This will give you time to fight it.
Fridging can also aid in helping impacted axolotls pass stones, although I don't know exactly how it helps.