Old English leaþr "foam, soap, washing soda," from Proto-Germanic *lauthran (source also of Old Norse lauðr "washing soap, foam"), from PIE *loutro- (source also of Gaulish lautron, Old Irish loathar "bathing tub," Greek louein "to bathe," Latin lavere "to wash"), which is from root *leue- "to wash" + instrumentative suffix *-tro-.
The modern noun might be a 16c. redevelopment from the verb. Meaning "violent perspiration" (especially of horses) is from 1650s; hence the transferred sense "state of agitation" (such as induces sweating), attested from 1839.