Hello,
When connecting to the PostgreSQL server through psql, the database must be specified so that PostgreSQL knows which database to run the SQL against.
For example, if you had an additional DB on your PostgreSQL server other than mydb called mydb2, and you connected to mydb2 through psql, queries against tables existing in mydb would fail because they do not exist in mydb2.
Therefore, the database must always be specified.
Joe