That's called sublimation. Boas do it more so than BPs. I've never read about the reason why. My guess is that they are trying to stay in check with an anchor point, especially if it is moving. Kind of like how we airplane wing our arms trying to keep balance on a beam.
My Kingsnake does this a whole lot more than my BP. I enjoy it, feels like a little massage, especially when he's around my neck!