The Nazis most likely used the death marches to:

punish camp prisoners for uprisings.
move prisoners from one camp to another.
move Jews from ghettos to concentration camps.
hide the proof of the Holocaust.