The appearance of fogging depends on several factors, the difference in temperature between the body and the water, humidity levels, etc.
Wear due to friction is one of the main causes.
If your goggles fog up, dip your lenses in the water and a protective film will reform.
After a certain length of time, the anti-fogging treatment will no longer be effective.
Anti-fogging reactivators are available on the market.