Why does my dog eat dirt

why does my dog eat dirt and rocks