It’s because the height of the content on your page is much larger than the viewport height. But though I realise that there is some issue there, it’s not possible to say what that issue is without seeing the full structure (CSS and HTML)
that’s weird. I am writing some code on a test page i have locally on my computer. maybe because it is local it shows such a gap? does the viewport height change according to the content?