Maybe you or something scared her, or maybe you smelled like food on your hands. Rats can't see well so she could have easily mistaken your hand for food especially if you had a treat in it.