What are PostgreSQL templates?
Whenever you create a new database in Postgres, you are actually basing it off an already present database in your cluster.
This database, template1, and another, called template0, are standard system databases that exist in every newly created database cluster.
Source: What are PostgreSQL templates?, an article by Angelico de los Reyes.