Well yeah, NASA is a research agency and SpaceX is a company trying to commercialize space technology. That's like saying the Human Genome Project cost billions of dollars but you can get your genome sequenced for $99 from 23andMe, so obviously the Human Genome Project was a waste of money.