You seem to be under the impression the value of a company is somehow related to lines of code, it's not.
It's like saying techcrunch is worthless because it's just a wordpress install with fancy theme, or flipboard is worthless because it's just an RSS reader.
Code is just a small part of what makes a business successful and defensible.