Apple uses customized parts with specialized processes in most of their machines. This drives the price up, requiring someone to eat the additional cost so that Apple can retain its margins when selling. Demand for parts, and the cost of producing them, leads to a more expensive product.