The extension is only one of the factors involved in figuring out which language a file is written in. They use heuristics too, in order to determine what language a file uses.
I haven't looked any deep into the docs, but I suppose it would look into some of the keywords that are unique to QB64; there's also the fact that most of our modern keywords start with an underscore, things like that.