In spiritual terms a shroud is a mark of respect for the dead.
As a garment, it is meant to convey decency.