They're trained. I have a theory they imprinted on Pratt's character, like a chicken when it hatches. But, since the raptors in the films are said to be as intelligent as chimps or dolphins, shit will hit the fan.