My pet rat sometimes attacks my hands and feet why?

Usually he’s very sweet and gentle and not aggressive at all but sometimes we will pounce on my feet and hands causing them to bleed and I have to put him back in the cage because he won’t let go and idk why he does this :((((
3 answers 3