(a fern, so-called from its hair-like stalks) never takes wet or moisture.
“His skin is like the herb called true Maiden's hair, which never
takes wet or moisture, but still keeps dry, though laid at the bottom
of a river as long as you please. For this reason it is called
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894
More on Maidenhair from Infoplease: