In ancient Egypt, it was important for a person's "ka" to survive after ther had died.
This life force or "ka" needed to be free to experience a new life.
By wrapping up Egyptian kings, it was thoung that these powerful leaders would safely make it to the next life.
Digging up a mummy was widely viewed in Egypt as interrupting the life force-hence the curse