Because calling jQuery.height() is heavier then caching page height in a variable (height is used often while zooming) and it looks cleaner to me.