She may have had some internal hemorrhaging or a uterine infection that wasn't visible from the outside. Rats don't normally show signs of illness unless they are on death's door. Did she have any cage mates?

There aren't any illnesses that can be passed to your snake, so no worries. I just wouldn't feed her to the snake, if that's what you're meaning.