There is actually a concept called Fitts' Law that just describes what you said.
When tabs are placed against the very top edge of the screen, the top edge effectively acts as a target with infinite height (Y-axis), making it very easy to reach.
Apple and Microsoft both apply this concept in their OS, just to different elements (close button or menu bar).