When activating a theme, any file within the theme is loaded into the system as a Page Theme File. At that point the file can then be used to create a new page type.
A page's theme is a pointer to a directory containing templates, CSS files and optionally PHP includes, images and JavaScript files.