NPP determines the language from the file’s extension. If you open a .cpp file, it’s content will be highlighted according to C++ rules.
If you start a new file, NPP has no means to find out what highlighting rules to apply. In this case you have two options: a) Select your Language from the Menu labeled “Language” or b) save your file with an appropriate extension.