USE database command is used to select the database, you want to use and create table within it.
Suppose we have multiple databases in the database list and we have to choose a particular one.
For example,we have multiple databases shown in the following image:
Here we will use "Javatpoint" database to create tables etc.. So you have to use USE command.
Now, "javatpoint" database is selected. You can create tables within it.