Historically, batteries were too expensive for energy storage, but their prices have dropped dramatically in recent years, thanks to their mass production by companies such as Panasonic, Tesla and Samsung.