Unable to fully maximize Terminal window
Terminal windows are always sized to show full text lines (you can check this by resizing the window manually to see that it resizes in steps), so for example if your text height in Terminal is 10pt and your screen height is 1275pt there will be a 5pt gap at the bottom (numbers not real and ignoring menu bar, window title etc, just to show the principle).