Currently bitcoin mining uses specialized computers called ASICs which are specifically designed to solve the puzzles requires to mine bitcoin. Due to their specific nature, the machines are custom designed and manufactured. As they are not mass produced, they cost more to buy.
they're costly, but they're the only option to mine bitcoins. As with everything, bitcoin mining is more profitable for large mining farms that can buy cheaper miners and cut their electricity costs