A very high percentage of body heat is radiated from your head. (That is why we wear hats in the winter)

so when you combine the cover (your hair is nice to hide in) the security of something to wrap up on, and the warmth of your scalp, it makes an inviting environment for a snake to check out.