Is your coffin set to be used as burial for citizens? Is the corpse forbidden? Standing orders can be set so that your dead are automatically forbidden. It's a nice feature so you don't have dwarves running into a dangerous area to bury dead people and then themselves get killed.