S/he could be seeking warmth or a cool spot, or might be feeling stressed or anxious. What age is your pal? It could be the case that s/he is simply exploring new surroundings. If the behaviour persists, I’d mention it to the vet. This sounds odd, but is s/he licking the wall? That could also be a sign of a nutritional deficiency.