The net over the casket is a pall.
The pall over the casket is a rich cloth pall that is used to cover the casket or coffin during the funeral and grew during the Middle Ages; initially these were brightly colored and patterned, only later black, and later still white. They were usually then given to the Church to use for vestments or other decorations.
The net over a body in a casket is a casket veil and the casket veil, also called a pall or mortcloth, is a veil that is placed over the corpse inside the coffin.
These casket veils embellish the display of the body itself during a wake or before a burial, and also grant dignity and respect to the deceased by covering the body with a beautiful garment.
Some types of coffins do eventually collapse after many years.
However metal coffins may not collapse until 100 years or so later on.
Wood coffins will rot and collapse within a few years to 10 years and eventually the body will naturally decay and rot away to bones as well.
Coffins eventually do rot or corrode or fall apart after many years.
For wood coffins they usually rot within a few years to 10 years after being buried but other coffins may last until 50 to 300 years or more.
Eventually the body will rot out and decay to nothing but bones even in the coffin within 20 years time.
The reason we bury bodies in coffins is to prevent decay of the body and to prevent odors and protect the environment from the decaying body as well.
Also the coffin is used to allow family to view the body and easily lower the body into the grave.
Although people will still rot in a coffin it just takes a bit longer and eventually the coffin unless it's stainless steel will either rust away or rot away in the ground and expose the body.
Coffins have long been used when burying bodies to prevent the odor of decay and to give the family members closure and prevent them from witnessing the decomposition of their loved ones, and in many cultures it has been seen as a necessary step for the deceased to enter the afterlife or to give back to the cycle of life.
Although in reality there's nothing harmful to the earth by allowing a body to rot into the ground because it's natural.