I mean they are literally the most successful space company ever and have revolutioned launch systems and completely revitalised the industry.
NASA also benefits from contracts as they don't have to pay billions to develop the rocket that would have to justify it's existence every 4 years, get reworked and design requirements changed constantly and most likely get cut 80% if the way through development and can instead just spend money on the actual missions.