Page templates are included in WordPress themes, and how they are used varies from theme to theme. A common use case for page templates is a page template for the front page which, when applied to a page, gives it a different layout and content settings than a regular page.
You can see which templates are available by editing a page and clicking the name of the current template under “Template” in the sidebar of the block editor. Some themes also include templates for other content types than pages, such as posts, but it isn’t as common.
In block themes, templates are made of blocks, and you can edit them, or create new ones, in the Site Editor under “Appearance” → “Editor” → “Templates”. A template you create there can be selected for any page on the site, just like the templates included in the theme.