A Carpet fitter once told me that the problem occurs more if the flooring is Tiled or Concrete and the Carpet is thin due to inferior quality or wear.
Apparently any excess moisture can reach the floor surface and cannot be absorbed, so as it tries to evaporate the carpet becomes a barrier. This causes moist air to accumalate which causes the ripple.
The ripple will usually dissapear as the carpet dries completely.
He suggested that I always keep moisture to a minimum in these circumstances, so I no longer use the 'Mop, Bucket and Squeegy' method
I now only use that on Uholstery & Curtains !!
Les