The wooden coffin is a special kind of storage used to bury dead bodies. Other items can be put in the coffin but on burial will appear on the ground.
Unlike the funeral pyre, the wooden coffin can be built indoors and then moved outside for usage with burial. Once the body is applied to the coffin, you can then bury them using the burial button as you would normally see for burying.
See also: funeral pyre