They’re digging their holes and are now pulling the dirt in on top of themselves.
They are not pulling the dirt in on themselves, the sides are simply caving and thus burying themselves.
The hazards of poor engineering. Always leave yourself an escape route. That way, you live to blame somebody else.