When you use "TemplateSelection" after typing a partial function name, Mathematica looks to the left of the insertion point to find a suitable function or variable name. When this name is not a defined function, "CompleteSelection" applies before attempting to make a function template.