If I create a new Colab notebook in Google Drive, it is recognised as a Colab notebook.
If I upload a .ipynb file into Google Drive, it is not recognised as a Colab notebook.
In the example below, file1.ipynb was created in Google Drive (and is recognised). This file was then downloaded, renamed to file2.ipynb, and then uploaded. The duplicate is not recognised (but you can open and run it in Colab, so the file is OK).
The JSON in the .ipynb file that is recognised, and the copy that is downloaded and then uploaded is identical.