I think most snakes do that, being touched or rubbed isn't something they are going to find enjoyable or pleasurable because they are snakes, that behavior is something humans love to do but it has no plus or appeal for the animal, they are just tolerating us.