Why does sandbox need to be covered?

Parasites. There are specific parasites that can be carried around on animals, specifically dogs and some birds that get into sandboxes and can get in through thin skin of children most notably from sandboxes.