According to NCERT, India is recognized as one of the world's megadiversity countries because it:
India is one of the 12 megadiverse countries because it possesses rich biodiversity and a large number of endemic species.
Ref: NCERT Class 12 Biology Chapter 13: Biodiversity and Conservation Loss of Biodiversity - Alien Invasion Co-extinction Mass Extinction - Evil Quartet