Huffing is the release of nervous energy

Bears huff when they’re getting over a scare, like a person taking a deep breath.  They do it when they reach safety up a tree,  when they finally dare to come down, and when they stop running away.