It is often caused by stress, or discomfort. Is he not liking being confined, maybe? Is this a new behavior?