Why did Zhu build a navy?
Because the Yongle emperor wanted to impress Ming power upon the world and show off China's resources and importance.
Why did the emperors who followed him refuse to fund the Star Fleet navy after Zhu Di died?
The fleet voyages cost Ming China enormous amounts of money; since they were not trade excursions, the government recovered little of the cost. Therefore they stopped funding star fleet.