Why do foxes dig?

They do this as adults to build dens to have young in and also to hide food they have recently collected from others until it is hungry again later when it will retrieve it again.
Young cubs dig also, but not to help them with their daily jobs or living but instead just during playtime and as practise later in life.