Another way to say "a blanket is used for sleeping." is "When people sleep, they use blankets."