Changing the name of a template effectively creates a copy of the original template with a new name.
The original template is still retained, and although it is hidden from being opened for editing, it can still be selected as the template for forms when switching templates.
Any forms based on the original template will still continue to reference the original template. Forms will not have their template reference switched to the new, renamed template. That needs to be done manually.