Why is the key being converted to template T. But not n?

Why wouldn’t he convert n to template T

hello @JaveedYara i would like to help you in the better way for that i request you to please elaborate your doubt .