My cat nearly ate my finger because she got out of the room, and as we were recovering her, the two large dogs found out she was there. She has no claws(Previous Owner) so it was only biting, but I don't blame her at all.
Just the same i've seen dogs lash out the same way. They're animals and that's an instinctual reaction to pain or fear.