Why were human bodies mummified?

they were mummified so there bodies could be reserved for the after life. they could be preserved so during the afterlife they could look healthy. The bodies could be preserved for many many years!