The short version is that Sam is the product of already mellow, domesticated parents and grandparents. Zoo stock, basically. That and this guy has been Sam's primary caretaker all of Sam's life so they have a bond.
The bird still bites him, but more in a playing around, playing rough kind of way.