Wood flooring is water resistant and not 100% waterproof. Filling spaces between the wood floor and the wall-base with a moisture barrier, like latex caulk is an effective way to prevent moisture from reaching the wood.