Was just thinking last night, why are higher capacities higher prices?

Surely pretty much everything is materially the same between a 1TB and 2TB capacity, where does the extra cost come in?

I used to think this with HDDs but I guess there were drives with higher numbers of platters or higher densities or whatever, but these are just silicon right?