The mechanism is the same, but the effect is very different. Other animals do not exhibit the anxiety about expecting or experiencing pain that humans do. While that does not justify putting animals in unnecessary pain, it does mean we should be careful not to anthropomorphize our reactions to pain (or anything else, for that matter) onto animals.