Agree with G&S – one of our mares does this when she is kept in the barn. Is he getting enough flax seed in his diet? That might help if it isn’t a boredom issue. My boy also rubs when in the barn, so he is on field board – no itching.
It is never the horse's fault