Cells undergo different processes in order to perform important functions. Why do cells undergo mitosis?

Cells undergo different processes in order to perform important functions. Why do cells undergo mitosis?