Starship is funded by NASA and built by a for-profit corporation, like SLS is and like the Space Shuttle was. The difference between SpaceX and the contractors that built the Shuttle and SLS is that those contractors kept their CEOs' names out of the news, and gouged like crazy.