Why is Madagascar named Madagascar?

The name Madagascar doesn't come from the local origin rather it was named by European travelers. It was first recorded in the memoirs of 13th-century Venetian explorer Marco Polo as a form of the name Mogadishu, the Somalian port with which Marco Polo had mistakenly taken as Madagascar. On St. Laurence's Day in 1500, Portuguese explorer Diogo Dias landed on the island and christened it Sao Lourenco, but Polo's name was preferred and popularized on Renaissance. It is very hard to find the name Madagascar in the texts of local population.