I think it's based on the height of the page. On pages where there isn't too much text content, it doesn't show the extra buy button at the top since the bottom one will be easily visible already. You might be able to hide it with custom CSS, although you'll have to email support to get access to that.