NASA is a government scientific research entity, and has no obligation to turn a profit. SpaceX and ULA do.