just to expand on things, servers generally cost more and have more expensive parts because of the need for reliability and for higher demand. Desktop computers are generally limited to a single user that does not use it 24/7, so their parts can be "cheaper" since they do not need to be as dependable. For home use, it is ok to take a desktop computer and devote it to "server use" where it simply serves up web pages or media files, since it is still only going to be accessed infrequently and by a minimal amount of people.
The expensive servers need to serve up data quickly and reliably, so a lot of the cost is making sure that if something breaks, it doesn't take out your data and it might only cause a small blip in service.