It's like in that TNG episode Pen Pals. Picard was firm that helping the planet would break the PD. He only allowed it when it became clear that Data's pal was asking for help. But in this movie, the natives weren't asking for anybody's help.
Well, we could assume that the natives on the volcano planet were praying and hence asking for help from a higher power... and their prayers were heard.