@stof There are two reasons:

1. It is necessary to be able to connect to the server without an explicite database for the functional temporary connection (see description of the PR) as it might not exists.
2. It is perfectly valid to connect to a database with explicitely specifying the database to use. It connects to the master database in this case which can be used to create new databases and stuff.