The reason why dead people started to be buried six feet under is an outbreak of the plague in 1665 in London. The disease was so contagious that the mayor decided that that was going to be the standard depth of burials in order to avoid further infections.
Nowadays, burials are normally shallower due to the practice of embalming bodies and the use of metal caskets.