Sometimes, people have the same idea at the same time. A few notable times this has happened:
Tombstone and Wyatt Earp
Antz and A Bugs Life
Mission To Mars and Red Planet
The Abyss and Deep Star Six and Leviathan
1492: Conquest of Paradise and Christopher Columbus: The Discovery
Mirror Mirror and Snow White and the Huntsman
Armageddon and Deep Impact
This is a case of what is known as "Twin Films". I'm not sure who coined the phrase exactly but there is a Wikipedia article which details some of the reasons that twin films are made and there is also a pretty comprehensive list of examples.
Some possible reasons that twin films occur as mentioned in the article are:
Two or more production companies ...
According to Screenrant, it's Andy Serkis' Mowgli: Legend of the Jungle.
Andy Serkis' Mowgli: Legend of the Jungle is now available on Netflix,
and it will undoubtedly be compared to Disney's live-action Jungle
Book movie, which was directed by Jon Favreau. Several years ago,
Serkis aimed to tell the definitive version of Mowgli's story, a
Because Walt Disney himself felt it would be better and audiences wouldn't sympathize with a snake being a good guy.
Kaa appears in the 1967 animated adaptation by Walt Disney
Productions. This version of Kaa is recast as an antagonist, as Walt
Disney felt audiences would not sympathize with a snake character.
this followed the ...