Theme templates are part of Drupal's theming system and allow for the customization of Drupal sites.
The template files are files used in Drupal to render a page, or part of a page; for example, Drupal uses a template file to render a node, and third-party modules can use a template file for their own pages, or for the theme functions they implement.