c. 1400, "a dirty, slovenly, or untidy woman," according to OED "Of doubtful origin," but probably cognate with dialectal German Schlutt "slovenly woman," dialectal Swedish slata "idle woman, slut," and Dutch slodde "slut," slodder "a careless man," but the exact relationship of all these is obscure. Chaucer uses sluttish (late 14c.) in reference to the appearance of an untidy man. Also "a kitchen maid, a drudge" (mid-15c.; hard pieces in a bread loaf from imperfect kneading were called slut's pennies, 18c.).
Specific modern sense of "woman who enjoys sex in a degree considered shamefully excessive" is by 1966. Meaning "woman of loose character, bold hussy" is attested from mid-15c., but the primary association through 18c. was untidiness. Johnson has it (second definition) as "A word of slight contempt to a woman" but sexual activity does not seem to figure into his examples. Playful use of the word, without implication of messiness or loose morals, is attested by 1660s:
My wife called up the people to washing by four o'clock in the morning; and our little girl Susan is a most admirable slut, and pleases us mightily, doing more service than both the others, and deserves wages better. [Pepys, diary, Feb. 21, 1664]
Compare playful use of scamp, etc., for boys. Sometimes used 19c. as a euphemism for bitch to describe a female dog.
There is a group of North Sea Germanic words in sl- that mean "sloppy," and also "slovenly woman" and, less often, "slovenly man," and that tend to evolve toward "woman of loose morals." Compare slattern, also English dialectal slummock "a dirty, untidy, or slovenly person" (1861), variant of slammacks "slatternly woman," said to be from slam "ill-shaped, shambling fellow." Also slammakin (from 1756 as a type of loose gown; 1785 as "slovenly female," 1727 as a character name in Gay's "Beggar's Opera"), with variants slamkin, slammerkin. Also possibly related are Middle Dutch slore "a sluttish woman," Dutch slomp, German schlampe "a slattern."