That had nothing to do with learning how to live on the island. That was Desmond trying to learn about his psychic powers. He told them to fix the roof because he KNEW it was going to rain. He also knew it was going to lightning, so he created a lightning rod so Claire and Aaron wouldn't DIE.