This then was the Sandman; but what was his occupation, and what was his purpose ? The nursery-maid being applied to, gave a nursery-maid's explanation, that the Sandman was a bad man, who flung sand in the eyes of little children who did not go to bed.
Source: wiktionary