Because you're primarily paying for the copyright. The cost of a book is fairly trivial

Not with paper prices where they are these days.

I haven't done the research recently, but I assume that the cost of printing and distributing physical books is still less than a lot of people assume it is.