They go where they like to be. Some snakes like heat more than others and vice versa.

Nothing to be alarmed about, he may be going on the warm side when your asleep for a hour or so and that about it.