Yeah, sadly just like with cars the parts are worth more than the complete machine. Just because I sink a ton of money on making a bike correct doesn't mean that it is worth more than an already correct bike that is the same.
On the other hand to a lot of folks a complete group set is worth a premium not because you could sell the separate parts for even as much but because assembling it from separate parts is more expensive.