We have a saying..."the rain in Spain, falls mainly on...Galicia!" But, at times, it does rain, and a lot, all over northern Spain. That is why it is so verdant and vividly green.
If you walk a Camino, you WILL get wet, including your feet. Get used to it.
If you are going to get wet, try to remain wet and warm if you can. Being wet and warm is good and can, at times, be very good. However being cold and wet is NEVER good.
To dry wet footwear, once you reach your destination, remove the insoles and towel dry as best you can. Place these somewhere they can dry. In your sleeping bag, liner or with you in bed is a very good place.
Also, shake excess water from your shoes or boots, towel them out to remove excess water, remove laces. Use the laces to hang the boots someplace where there is air circulation. Avoid icy cold window sills, unless you want to put on frozen footwear the next morning... yikes!
Yes, that does tend to wake you up. I have personally hung boots from the underside of a bunk above me, or over my bunk so air circulates around them all night.
Avoid placing them on a radiator. In the slim likelihood the proprietor turns the heat on for a blast in the middle of the night or just before wake up time, it will get hot enough to melt your soles. Do NOT take that chance.
Also, scrounge around for newspaper, not glossy paper, the regular stuff. Make loose balls of newspaper and stuff lightly into your boots, shoes. As if by a miracle, the newsprint tends to wick the wetness from the inside of the footwear. This is a tried and try 'trick' that has worked for me my entire life...I am 65.
Worse case, the footwear is still damp the next morning. However the insoles are dry. Your fresh socks are dry. Your feet are dry. The footwear will normally dry out within the first hour or so from your body heat. If your boots are breathable, like if they are made of Gore Tex, they will dry out even better. Don't forget to relace properly...
Hope this helps.