Because you're not just buying the device, you're buying the software that allows you to write code for it, and you're buying a license to distribute that code.Why is the PC version so much more expensive?
And because they can. It's not integral to their vision for windows, so they can charge what the market will bear. It'll go down in price over time I suspect. Just standard economics.