A two main things cause e-bikes (electric bikes) to be expensive.
1. The battery. Lithium ion batteries are the only battery demonstrated to have the range and longevity and light weight necessary in order to be practical for an e bike. However, like anything innovate and great they are still very expensive to manufacture. This is why electric cars are so expensive
2. There's no economy of scale, that is they are not popular enough for them to be mass produced thus lowering the price. This was the same for cars. Prior to Henry Ford's ingenious invention of the assembly line for cars cars were only toys of the elite.