Beijing was called Beiping before the founding of the People's Republic of China. Why was it later renamed Beijing?

Beijing is called Beiping, but it hasn't changed its name since the Republic of China moved its capital to Nanjing. The name Beiping appeared in the early Ming Dynasty, before the name Beijing. Yuandadu is actually today's Beijing. Later, Zhu Yuanzhang established the Ming Dynasty at 1367. The following year, he sent general Xu Da to lead the Northern Expedition, capture Dadu and expel Mengyuan from the Central Plains. Since Yingtian (Nanjing) was the capital of the Ming Dynasty, most of it was not the capital of China after the recovery, so it was renamed Beiping House. In fact, Beijing is called Beiping, and it was renamed after the Republic of China moved its capital to Nanjing. The name Beiping appeared in the early Ming Dynasty, before the name Beijing. Yuandadu is actually today's Beijing. Later, Zhu Yuanzhang established the Ming Dynasty at 1367. The following year, he sent general Xu Da to lead the Northern Expedition, capture Dadu and expel Mengyuan from the Central Plains. Since Yingtian (Nanjing) was the capital of the Ming Dynasty, most of it was not the capital of China after the recovery, so it was renamed Beiping House. During the reign of Ming Taizu, Beiping was the fief of Judy, the prince of Yan. After Judy launched the Jing Nan Rebellion and seized the throne, it was for the sake of Ming Chengzu. After Emperor Chengzu of Ming Dynasty ascended the throne (in the first year of Yongle, AD 1402), Beiping was changed to Beijing, and in the eighteenth year of Yongle, the capital was moved from Yingtian to Beijing. After Yingtian, he was demoted to the capital. Because it is in the south of Beijing, it is called Nanjing. In A.D. 1928, Chiang Kai-shek's national government successfully wiped out the regime of Beiyang warlords in Beijing during the Northern Expedition. Because the National Government designated Nanjing as the capital, it changed the name of Beijing to Beiping, because "Beijing" understood the meaning of the capital. It was not until the establishment of 1949 People's Republic of China (PRC) that Beiping was changed to Beijing because of the capital. During the reign of Ming Taizu, Beiping was the fief of Judy, the prince of Yan. After Judy launched the Jing Nan Rebellion and seized the throne, it was for the sake of Ming Chengzu. After Emperor Chengzu of Ming Dynasty ascended the throne (in the first year of Yongle, AD 1402), Beiping was changed to Beijing, and in the eighteenth year of Yongle, the capital was moved from Yingtian to Beijing. After Yingtian, he was demoted to the capital. Because it is in the south of Beijing, it is called Nanjing. In A.D. 1928, Chiang Kai-shek's national government successfully wiped out the regime of Beiyang warlords in Beijing during the Northern Expedition. Because the National Government designated Nanjing as the capital, it changed the name of Beijing to Beiping, because "Beijing" understood the meaning of the capital. It was not until the establishment of 1949 People's Republic of China (PRC) that Beiping was changed to Beijing because of the capital.