Ah, ok. Now i understand.
Well, considering MySQL, that the User-Data needed for Login is actually stored in the "mysql"-DB, i agree: It makes no sense to connect to a DB-Server without at least specifying "mysql" (or in case of PG "postgres" (=Maintenance-DB)).
So to connect to a server, the server itself has to store your credentials somewhere