Snakes are heterothermic (an extremely fancy word for cold-blooded) and so they will find places to bask in the sun in order to warm up. What better basking spot than an undisturbed wood pile?