Turtles will bury themselves when they feel scared. This assures them some safety. They also bury themselves during brumation when they get dormant. A similar case happens during Aestivation, and also, they will hide when the temperatures are at the extreme ends. This helps them to stay comfortable. You will find them digging when they are searching for food and, most importantly, when they are preparing to lay eggs.