You need 19 lines in an address buss to access half a megabyte. 20 lines addresses a full megabyte.
So why did Microsoft chose 640000 bytes as the upper limit for DOS? It's more than 19 lines can handle so you need 20 lines. Why did they just throw away 360000 bytes?