In this case the battery is not necessary. You don't need to store electricity to create water during off-peak hours, you just need to store excess water created during peak hours.
Also the article is not about solar panels, but a novel solar thermal distillation device.