In the days of “wooden ships and iron men”, the sailors slept in canvas (what else?), hammmocks slung belowdecks wherever there was (almost) room.
Should a man die, and need to be buried at sea, his former bunk became his (canvas) shroud.
Very efficient.
Rather.