Why was Mummification practiced in Ancient Egypt?

mummification was used in ancient Egypt as it was a way they invented to preserve bodies it remains to the this day one of the best bodily preservation techniques.