I think it's the snake equivalent of us standing on our tippie-toes to get a better view of things...

What I find really funny is when Phil stretches waaaaaaaay up to check out the top of his enclosure, and gets too top heavy and flops over.