Because by default http uses port 80 and https uses port 443.
Thus if you don't specify a port number your browser will assume you want the default port number.
I have several "web servers" running on my home server for things like sonar, radar, sabnzbd, my security cameras, etc. Each of these web servers I have setup to use a non-standard port and thus in the browser I have to specify the port number by putting a : and the port number after the URL.