Mice have the tendancy to be more prone to cannibalism than rats.
4 main factors are:
inadequate food
lack of water
stress
over population
Now you also have to keep in mind that sometimes the babies dye and since they are scavenger they will eat their dead.
If the babies are alive and she keeps doing that start from scratch and feed her off.